From 57ca584b3983855d1eaa14770a9cc9659b387ac4 Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Wed, 1 Jan 2025 12:08:44 +0000 Subject: [PATCH 1/3] Updated for PHPStan 2.0 --- composer.json | 3 ++- phpstan-laravel-8.neon | 6 +++--- phpstan.neon | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index fa4163d..935a923 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,8 @@ "mockery/mockery": "^1.0", "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", "phpunit/phpunit": "^9.0|^10.5", - "nunomaduro/larastan": "^1.0|^2.0" + "larastan/larastan": "^1.0|^2.0|^3.0", + "phpstan/phpstan": "^1.0|^2.0" }, "autoload": { "psr-4": { diff --git a/phpstan-laravel-8.neon b/phpstan-laravel-8.neon index a32f970..6f7c01e 100644 --- a/phpstan-laravel-8.neon +++ b/phpstan-laravel-8.neon @@ -1,5 +1,5 @@ includes: - - ./vendor/nunomaduro/larastan/extension.neon + - ./vendor/larastan/larastan/extension.neon parameters: @@ -11,5 +11,5 @@ parameters: ignoreErrors: - message: '#PHPDoc tag @throws with type [a-zA-Z0-9\\_|]*Psr\\SimpleCache\\InvalidArgumentException is not subtype of Throwable#' - - checkMissingIterableValueType: false + - + identifier: missingType.iterableValue diff --git a/phpstan.neon b/phpstan.neon index 60205d5..5909566 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ includes: - - ./vendor/nunomaduro/larastan/extension.neon + - ./vendor/larastan/larastan/extension.neon parameters: @@ -9,5 +9,5 @@ parameters: level: 6 ignoreErrors: - - checkMissingIterableValueType: false + - + identifier: missingType.iterableValue From dad53b0113276446b751203b64c60bd09cba4933 Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Wed, 1 Jan 2025 12:18:00 +0000 Subject: [PATCH 2/3] minimum PHPStan 1.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 935a923..c781c84 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0", "phpunit/phpunit": "^9.0|^10.5", "larastan/larastan": "^1.0|^2.0|^3.0", - "phpstan/phpstan": "^1.0|^2.0" + "phpstan/phpstan": "^1.12.14|^2.0" }, "autoload": { "psr-4": { From 2d0b5ba36db0cc33656e20032c30edd1a9cdac17 Mon Sep 17 00:00:00 2001 From: Ash Allen Date: Thu, 2 Jan 2025 13:58:14 +0000 Subject: [PATCH 3/3] Add Larastan 3 support back in that I accidentally removed. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a37e944..1bb47b3 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "mockery/mockery": "^1.0", "orchestra/testbench": "^7.0|^8.0|^9.0", "phpunit/phpunit": "^9.0|^10.5|^11.0", - "larastan/larastan": "^1.0|^2.0" + "larastan/larastan": "^1.0|^2.0|^3.0" }, "autoload": { "psr-4": {