diff --git a/composer.json b/composer.json index 1358721ef0..84fc3723ca 100644 --- a/composer.json +++ b/composer.json @@ -171,7 +171,7 @@ "mockery/mockery": "^1.5", "phpunit/phpunit": "^11.0", "phpstan/phpstan": "^1.10.0", - "larastan/larastan": "^2.7", + "larastan/larastan": "2.9.12", "symfony/var-dumper": "^7.0" }, "config": { diff --git a/php-packages/phpstan/composer.json b/php-packages/phpstan/composer.json index 6a03b97d3e..d235ca84d4 100644 --- a/php-packages/phpstan/composer.json +++ b/php-packages/phpstan/composer.json @@ -6,7 +6,7 @@ "require": { "flarum/testing": "^2.0", "phpstan/phpstan": "^1.10.0", - "larastan/larastan": "^2.7" + "larastan/larastan": "2.9.12" }, "autoload": { "psr-4": { diff --git a/php-packages/phpstan/larastan-extension.neon b/php-packages/phpstan/larastan-extension.neon index 64d2471faf..4b050fe57e 100644 --- a/php-packages/phpstan/larastan-extension.neon +++ b/php-packages/phpstan/larastan-extension.neon @@ -281,7 +281,7 @@ services: - phpstan.broker.dynamicFunctionReturnTypeExtension - - class: Larastan\Larastan\ReturnTypes\CollectionFilterDynamicReturnTypeExtension + class: Larastan\Larastan\ReturnTypes\CollectionFilterRejectDynamicReturnTypeExtension tags: - phpstan.broker.dynamicMethodReturnTypeExtension -