From b3cc5d52515b7f31d4931f8b1ecc75f53483ea39 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 30 Oct 2025 07:38:23 +0100 Subject: [PATCH] Update phpstan-phpunit to 2.0.8 --- composer.json | 2 +- tests/Reflection/Nette/HtmlClassReflectionExtensionTest.php | 6 ------ .../Nette/NetteObjectClassReflectionExtensionTest.php | 6 ------ ...ponentModelArrayAccessDynamicReturnTypeExtensionTest.php | 3 --- .../Nette/ComponentModelDynamicReturnTypeExtensionTest.php | 3 --- .../FormContainerValuesDynamicReturnTypeExtensionTest.php | 3 --- tests/Type/Nette/MultiplierTest.php | 1 - .../Nette/StringsMatchDynamicReturnTypeExtensionTest.php | 3 --- 8 files changed, 1 insertion(+), 26 deletions(-) diff --git a/composer.json b/composer.json index 89c6dda..8fff292 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "nette/utils": "^2.3.0 || ^3.0.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpstan-deprecation-rules": "^2.0", - "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-phpunit": "^2.0.8", "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^9.6" }, diff --git a/tests/Reflection/Nette/HtmlClassReflectionExtensionTest.php b/tests/Reflection/Nette/HtmlClassReflectionExtensionTest.php index 9c217cb..74d1067 100644 --- a/tests/Reflection/Nette/HtmlClassReflectionExtensionTest.php +++ b/tests/Reflection/Nette/HtmlClassReflectionExtensionTest.php @@ -21,9 +21,6 @@ protected function setUp(): void $this->extension = new HtmlClassReflectionExtension(); } - /** - * @return mixed[] - */ public function dataHasMethod(): array { return [ @@ -62,9 +59,6 @@ public function testGetMethod(): void self::assertSame(Html::class, $parametersAcceptor->getReturnType()->describe(VerbosityLevel::value())); } - /** - * @return mixed[] - */ public function dataHasProperty(): array { return [ diff --git a/tests/Reflection/Nette/NetteObjectClassReflectionExtensionTest.php b/tests/Reflection/Nette/NetteObjectClassReflectionExtensionTest.php index 8d8e5bd..fcdc403 100644 --- a/tests/Reflection/Nette/NetteObjectClassReflectionExtensionTest.php +++ b/tests/Reflection/Nette/NetteObjectClassReflectionExtensionTest.php @@ -21,9 +21,6 @@ protected function setUp(): void $this->extension = new NetteObjectClassReflectionExtension(); } - /** - * @return mixed[] - */ public function dataHasMethod(): array { $data = []; @@ -62,9 +59,6 @@ public function testHasMethod(string $className, string $method, bool $result): self::assertSame($result, $this->extension->hasMethod($classReflection, $method)); } - /** - * @return mixed[] - */ public function dataHasProperty(): array { $data = []; diff --git a/tests/Type/Nette/ComponentModelArrayAccessDynamicReturnTypeExtensionTest.php b/tests/Type/Nette/ComponentModelArrayAccessDynamicReturnTypeExtensionTest.php index 2babf1f..6c9e83a 100644 --- a/tests/Type/Nette/ComponentModelArrayAccessDynamicReturnTypeExtensionTest.php +++ b/tests/Type/Nette/ComponentModelArrayAccessDynamicReturnTypeExtensionTest.php @@ -7,9 +7,6 @@ class ComponentModelArrayAccessDynamicReturnTypeExtensionTest extends TypeInferenceTestCase { - /** - * @return iterable - */ public function dataFileAsserts(): iterable { yield from self::gatherAssertTypes(__DIR__ . '/data/componentModelArrayAccess.php'); diff --git a/tests/Type/Nette/ComponentModelDynamicReturnTypeExtensionTest.php b/tests/Type/Nette/ComponentModelDynamicReturnTypeExtensionTest.php index 5fc7bc4..e1d0a37 100644 --- a/tests/Type/Nette/ComponentModelDynamicReturnTypeExtensionTest.php +++ b/tests/Type/Nette/ComponentModelDynamicReturnTypeExtensionTest.php @@ -7,9 +7,6 @@ class ComponentModelDynamicReturnTypeExtensionTest extends TypeInferenceTestCase { - /** - * @return iterable - */ public function dataFileAsserts(): iterable { yield from self::gatherAssertTypes(__DIR__ . '/data/componentModel.php'); diff --git a/tests/Type/Nette/FormContainerValuesDynamicReturnTypeExtensionTest.php b/tests/Type/Nette/FormContainerValuesDynamicReturnTypeExtensionTest.php index fa9aac7..db144a5 100644 --- a/tests/Type/Nette/FormContainerValuesDynamicReturnTypeExtensionTest.php +++ b/tests/Type/Nette/FormContainerValuesDynamicReturnTypeExtensionTest.php @@ -7,9 +7,6 @@ final class FormContainerValuesDynamicReturnTypeExtensionTest extends TypeInferenceTestCase { - /** - * @return iterable - */ public static function dataFileAsserts(): iterable { yield from self::gatherAssertTypes(__DIR__ . '/data/FormContainerModel.php'); diff --git a/tests/Type/Nette/MultiplierTest.php b/tests/Type/Nette/MultiplierTest.php index 92d2965..8f762ec 100644 --- a/tests/Type/Nette/MultiplierTest.php +++ b/tests/Type/Nette/MultiplierTest.php @@ -7,7 +7,6 @@ class MultiplierTest extends TypeInferenceTestCase { - /** @return iterable */ public function dataFileAsserts(): iterable { yield from self::gatherAssertTypes(__DIR__ . '/data/multiplier.php'); diff --git a/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php b/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php index a503824..9bf6536 100644 --- a/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php +++ b/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php @@ -7,9 +7,6 @@ class StringsMatchDynamicReturnTypeExtensionTest extends TypeInferenceTestCase { - /** - * @return iterable - */ public function dataFileAsserts(): iterable { yield from self::gatherAssertTypes(__DIR__ . '/data/strings-match.php');