diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 48fe5c5..97931f4 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,14 +15,19 @@ jobs: include: - laravel: 11.* testbench: 9.* + rector: 2.* - laravel: 10.* testbench: 8.* + rector: 1.* - laravel: 9.* testbench: 7.* + rector: 1.* - laravel: 8.* testbench: 6.* + rector: 1.* - laravel: 7.* testbench: 5.* + rector: 0.19.* exclude: - laravel: 11.* php: 8.1 @@ -73,7 +78,7 @@ jobs: - name: Install dependencies run: | - composer update --${{ matrix.dependency-version }} --with=laravel/framework:${{ matrix.laravel }} --with=orchestra/testbench-core:${{ matrix.testbench }} --prefer-dist --no-interaction + composer update --${{ matrix.dependency-version }} --with=laravel/framework:${{ matrix.laravel }} --with=orchestra/testbench-core:${{ matrix.testbench }} --with=rector/rector:${{ matrix.rector }} --prefer-dist --no-interaction - name: Execute tests run: vendor/bin/pest diff --git a/composer.json b/composer.json index aa00d48..46b7ace 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "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/backtrace": "^1.7.1", "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" @@ -44,8 +44,8 @@ "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", + "phpunit/phpunit": "^9.3 || ^10.1 || ^11.0.10", + "rector/rector": "^0.19.2 || ^1.0.1 || ^2.0.0", "spatie/pest-plugin-snapshots": "^1.1 || ^2.0", "symfony/var-dumper": "^4.2 || ^5.1 || ^6.0 || ^7.0.3" }, diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c5e840f..339c005 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -11,3 +11,6 @@ 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: '#Unsafe usage of new static\(\).#' + reportUnmatched: false