diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 99a6493..48fe5c5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - php: [8.3, 8.2, 8.1, 8.0, 7.4] + php: [8.4, 8.3, 8.2, 8.1, 8.0, 7.4] laravel: [11.*, 10.*, 9.*, 8.*, 7.*] dependency-version: [prefer-stable] include: @@ -34,12 +34,18 @@ jobs: php: 8.0 - laravel: 10.* php: 7.4 + - laravel: 9.* + php: 8.4 - laravel: 9.* php: 8.3 - laravel: 9.* php: 7.4 + - laravel: 8.* + php: 8.4 - laravel: 8.* php: 8.3 + - laravel: 7.* + php: 8.4 - laravel: 7.* php: 8.3 - laravel: 7.* diff --git a/composer.json b/composer.json index 871cb55..aa00d48 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,11 @@ { "name": "spatie/laravel-ray", "description": "Easily debug Laravel apps", + "license": "MIT", "keywords": [ "spatie", "laravel-ray" ], - "homepage": "https://github.com/spatie/laravel-ray", - "license": "MIT", "authors": [ { "name": "Freek Van der Herten", @@ -15,30 +14,43 @@ "role": "Developer" } ], + "homepage": "https://github.com/spatie/laravel-ray", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/spatie" + }, + { + "type": "other", + "url": "https://spatie.be/open-source/support-us" + } + ], "require": { + "php": "^7.4 || ^8.0", "ext-json": "*", - "php": "^7.4|^8.0", "composer-runtime-api": "^2.2", - "illuminate/contracts": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/database": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/queue": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0", + "illuminate/contracts": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "illuminate/database": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "illuminate/queue": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "illuminate/support": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", "spatie/backtrace": "^1.0", - "spatie/ray": "^1.41.1", - "symfony/stopwatch": "4.2|^5.1|^6.0|^7.0", - "zbateson/mail-mime-parser": "^1.3.1|^2.0|^3.0" + "spatie/ray": "^1.41.3", + "symfony/stopwatch": "4.2 || ^5.1 || ^6.0 || ^7.0", + "zbateson/mail-mime-parser": "^1.3.1 || ^2.0 || ^3.0" }, "require-dev": { "guzzlehttp/guzzle": "^7.3", - "laravel/framework": "^7.20|^8.19|^9.0|^10.0|^11.0", - "orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0|^9.0", - "pestphp/pest": "^1.22|^2.0", - "phpstan/phpstan": "^1.10.57", - "phpunit/phpunit": "^9.3|^10.1", - "rector/rector": "^0.19.2|^1.0", - "spatie/pest-plugin-snapshots": "^1.1|^2.0", - "symfony/var-dumper": "^4.2|^5.1|^6.0|^7.0.3" + "laravel/framework": "^7.20 || ^8.19 || ^9.0 || ^10.0 || ^11.0", + "orchestra/testbench-core": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "pestphp/pest": "^1.22 || ^2.0", + "phpstan/phpstan": "^1.10.57 || ^2.0.2", + "phpunit/phpunit": "^9.3 || ^10.1", + "rector/rector": "dev-main", + "spatie/pest-plugin-snapshots": "^1.1 || ^2.0", + "symfony/var-dumper": "^4.2 || ^5.1 || ^6.0 || ^7.0.3" }, + "minimum-stability": "dev", + "prefer-stable": true, "autoload": { "psr-4": { "Spatie\\LaravelRay\\": "src" @@ -49,17 +61,11 @@ "Spatie\\LaravelRay\\Tests\\": "tests" } }, - "scripts": { - "analyse": "vendor/bin/phpstan", - "test": "vendor/bin/pest", - "test-coverage": "vendor/bin/pest --coverage", - "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes" - }, "config": { - "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true - } + }, + "sort-packages": true }, "extra": { "branch-alias": { @@ -71,16 +77,10 @@ ] } }, - "minimum-stability": "dev", - "prefer-stable": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/spatie" - }, - { - "type": "other", - "url": "https://spatie.be/open-source/support-us" - } - ] + "scripts": { + "analyse": "vendor/bin/phpstan", + "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes", + "test": "vendor/bin/pest", + "test-coverage": "vendor/bin/pest --coverage" + } } diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6b85c3f..07e0ffb 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -15,6 +15,11 @@ parameters: count: 1 path: src/Watchers/ExceptionWatcher.php + - + message: "#^Call to method createReport\\(\\) on an unknown class Spatie\\\\FlareClient\\\\Flare\\.$#" + count: 1 + path: src/Watchers/ExceptionWatcher.php + - message: "#^Call to method trim\\(\\) on an unknown class Facade\\\\FlareClient\\\\Truncation\\\\ReportTrimmer\\.$#" count: 1 @@ -50,3 +55,37 @@ parameters: count: 1 path: src/Watchers/ExceptionWatcher.php + - + message: "#^Access to an undefined property Illuminate\\\\Support\\\\Optional::\\$file.$#" + count: 1 + path: src/OriginFactory.php + + - + message: "#^Access to an undefined property Illuminate\\\\Support\\\\Optional::\\$lineNumber.$#" + count: 1 + path: src/OriginFactory.php + + - + message: "#^Call to an undefined method Illuminate\\\\Support\\\\Optional::applyCalledMethods\\(\\).$#" + count: 10 + path: src/ + + - + message: "#^Call to an undefined method Illuminate\\\\Support\\\\Optional::getActionName\\(\\).$#" + count: 1 + path: src/Watchers/RequestWatcher.php + + - + message: "#^Call to an undefined method Illuminate\\\\Support\\\\Optional::gatherMiddleware\\(\\).$#" + count: 1 + path: src/Watchers/RequestWatcher.php + + - + message: "#^Access to protected property Illuminate\\\\Support\\\\Collection::\\$items.$#" + count: 2 + path: src/RayServiceProvider.php + + - + message: "#^Access to protected property Illuminate\\\\Support\\\\Stringable::\\$value.$#" + count: 2 + path: src/RayServiceProvider.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 2c029ab..c5e840f 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -11,9 +11,3 @@ parameters: - '#^Call to method \w+\(\) on an unknown class Spatie\\WordPressRay\\Ray\.$#' - '#^Call to method \w+\(\) on an unknown class Spatie\\RayBundle\\Ray\.$#' - '#^Access to an undefined property Spatie\\Ray\\Settings\\Settings\:\:\$\w+\.$#' - - - message: '#^Access to an undefined property Spatie\\LaravelRay\\RayServiceProvider\:\:\$items\.$#' - path: src/RayServiceProvider.php - - - message: '#^Access to an undefined property Spatie\\LaravelRay\\RayServiceProvider\:\:\$value\.$#' - path: src/RayServiceProvider.php