diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3e9193a..78059a7 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -10,12 +10,16 @@ jobs: strategy: matrix: - php: [8.2, 8.3, 8.4] - laravel: [10.*, 11.*, 12.*] + php: [8.2, 8.3, 8.4, 8.5] + laravel: [10.*, 11.*, 12.*, 13.*] os: [ubuntu-latest] exclude: + - php: 8.2 + laravel: 13.* - php: 8.4 laravel: 10.* + - php: 8.5 + laravel: 10.* name: ${{ matrix.php }} - ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 8b9bc87..dffb9bc 100644 --- a/composer.json +++ b/composer.json @@ -21,11 +21,11 @@ }, "require": { "nikic/php-parser": "^5", - "laravel/framework": "^10.0 || ^11.0 || ^12.0" + "laravel/framework": "^10.0 || ^11.0 || ^12.0 || ^13.0" }, "require-dev": { - "phpunit/phpunit": "^10 || ^11.0", - "orchestra/testbench": "^8.0 || ^9.0 || ^10.0", + "phpunit/phpunit": "^10 || ^11.0 || ^12.0", + "orchestra/testbench": "^8.0 || ^9.0 || ^10.0 || ^11.0", "laravel/pint": "^1.6" }, "extra": { diff --git a/phpunit.dist.xml b/phpunit.dist.xml index 691b4a5..3564ccf 100644 --- a/phpunit.dist.xml +++ b/phpunit.dist.xml @@ -1,9 +1,5 @@ - - - - ./tests diff --git a/tests/expected/closurecalls.php b/tests/expected/closurecalls.php index cd5c4cc..b09fbc2 100644 --- a/tests/expected/closurecalls.php +++ b/tests/expected/closurecalls.php @@ -1,11 +1,7 @@ env('EXISTING', 'default-value'), 'new2' => function ( - $content - ) { + 'existing' => env('EXISTING', 'default-value'), 'new2' => function ($content) { return mb_strtolower($content); - }, 'new3' => fn( - $content - ) => mb_strtolower($content), + }, 'new3' => fn($content) => mb_strtolower($content), ]; diff --git a/tests/expected/update_closures.php b/tests/expected/update_closures.php index c81fdb2..ddde511 100644 --- a/tests/expected/update_closures.php +++ b/tests/expected/update_closures.php @@ -1,11 +1,7 @@ env('EXISTING', 'default-value'), 'new2' => function ( - $content - ) { + 'existing' => env('EXISTING', 'default-value'), 'new2' => function ($content) { return mb_strtolower($content); - }, 'new3' => fn( - $content2 - ) => mb_strtolower($content2), + }, 'new3' => fn($content2) => mb_strtolower($content2), ];