From af2a32a3a4f50874c63785f5168e1df60f947553 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Fri, 29 Nov 2024 10:37:44 +0100 Subject: [PATCH] fix: larastan changes frequently --- composer.json | 2 +- php-packages/phpstan/composer.json | 2 +- php-packages/phpstan/larastan-extension.neon | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -