From c9ef54ad7b6432b25a2ace918ab9acf1ef286e12 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 9 Feb 2025 10:07:33 +0000 Subject: [PATCH 1/3] Update PHPStan packages to v2 --- vendor-bin/tools/composer.json | 8 ++-- vendor-bin/tools/composer.lock | 81 ++++++++++++++++------------------ 2 files changed, 43 insertions(+), 46 deletions(-) diff --git a/vendor-bin/tools/composer.json b/vendor-bin/tools/composer.json index d274875..a637a74 100644 --- a/vendor-bin/tools/composer.json +++ b/vendor-bin/tools/composer.json @@ -8,10 +8,10 @@ "matthiasnoback/symfony-dependency-injection-test": "^6.0", "phpmd/phpmd": "^2.13", "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.10.14", - "phpstan/phpstan-phpunit": "^1.3.11", - "phpstan/phpstan-strict-rules": "^1.5.1", - "phpstan/phpstan-symfony": "^1.3.1", + "phpstan/phpstan": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.0.0", + "phpstan/phpstan-strict-rules": "^2.0.0", + "phpstan/phpstan-symfony": "^2.0.0", "phpunit/phpunit": "^10.1.2", "symfony/phpunit-bridge": "^7.0.0" }, diff --git a/vendor-bin/tools/composer.lock b/vendor-bin/tools/composer.lock index f8b5cd9..1b54ab1 100644 --- a/vendor-bin/tools/composer.lock +++ b/vendor-bin/tools/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1e62c4d99bd1fa45f95d7c4e29e1a535", + "content-hash": "633c602c2672a3a19ef0b4ae67d81c7e", "packages": [], "packages-dev": [ { @@ -1139,20 +1139,20 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.16", + "version": "2.1.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e0bb5cb78545aae631220735aa706eac633a6be9" + "reference": "64ae44e48214f3deebdaeebf2694297a10a2bea9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e0bb5cb78545aae631220735aa706eac633a6be9", - "reference": "e0bb5cb78545aae631220735aa706eac633a6be9", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/64ae44e48214f3deebdaeebf2694297a10a2bea9", + "reference": "64ae44e48214f3deebdaeebf2694297a10a2bea9", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -1193,34 +1193,33 @@ "type": "github" } ], - "time": "2025-01-21T14:50:05+00:00" + "time": "2025-02-07T15:05:24+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "1.4.2", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "72a6721c9b64b3e4c9db55abbc38f790b318267e" + "reference": "d09e152f403c843998d7a52b5d87040c937525dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/72a6721c9b64b3e4c9db55abbc38f790b318267e", - "reference": "72a6721c9b64b3e4c9db55abbc38f790b318267e", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/d09e152f403c843998d7a52b5d87040c937525dd", + "reference": "d09e152f403c843998d7a52b5d87040c937525dd", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0.4" }, "conflict": { "phpunit/phpunit": "<7.0" }, "require-dev": { - "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-strict-rules": "^1.5.1", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6" }, "type": "phpstan-extension", "extra": { @@ -1243,34 +1242,33 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.4.2" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.4" }, - "time": "2024-12-17T17:20:49+00:00" + "time": "2025-01-22T13:07:38+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "1.6.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "b564ca479e7e735f750aaac4935af965572a7845" + "reference": "8b88b5f818bfa301e0c99154ab622dace071c3ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/b564ca479e7e735f750aaac4935af965572a7845", - "reference": "b564ca479e7e735f750aaac4935af965572a7845", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/8b88b5f818bfa301e0c99154ab622dace071c3ba", + "reference": "8b88b5f818bfa301e0c99154ab622dace071c3ba", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12.4" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0.4" }, "require-dev": { - "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.1", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" }, "type": "phpstan-extension", "extra": { @@ -1292,38 +1290,37 @@ "description": "Extra strict and opinionated rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", - "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.2" + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.3" }, - "time": "2025-01-19T13:02:24+00:00" + "time": "2025-01-21T10:52:14+00:00" }, { "name": "phpstan/phpstan-symfony", - "version": "1.4.13", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-symfony.git", - "reference": "dd1aaa7f85f9916222a2ce7e4d21072fe03958f4" + "reference": "65f02c7e585f3c7372e42e14d3d87da034031553" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/dd1aaa7f85f9916222a2ce7e4d21072fe03958f4", - "reference": "dd1aaa7f85f9916222a2ce7e4d21072fe03958f4", + "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/65f02c7e585f3c7372e42e14d3d87da034031553", + "reference": "65f02c7e585f3c7372e42e14d3d87da034031553", "shasum": "" }, "require": { "ext-simplexml": "*", - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.12" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.1.2" }, "conflict": { "symfony/framework-bundle": "<3.0" }, "require-dev": { - "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-phpunit": "^1.3.11", - "phpstan/phpstan-strict-rules": "^1.5.1", - "phpunit/phpunit": "^8.5.29 || ^9.5", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "psr/container": "1.0 || 1.1.1", "symfony/config": "^5.4 || ^6.1", "symfony/console": "^5.4 || ^6.1", @@ -1364,9 +1361,9 @@ "description": "Symfony Framework extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-symfony/issues", - "source": "https://github.com/phpstan/phpstan-symfony/tree/1.4.13" + "source": "https://github.com/phpstan/phpstan-symfony/tree/2.0.2" }, - "time": "2025-01-04T13:55:31+00:00" + "time": "2025-01-21T18:57:07+00:00" }, { "name": "phpunit/php-code-coverage", From afd7e8c5a3426b96967c3fe81655fd0cd3b2bbbc Mon Sep 17 00:00:00 2001 From: core23 Date: Sun, 9 Feb 2025 11:29:06 +0100 Subject: [PATCH 2/3] Fix @SuppressWarnings --- src/Handler/AbstractFormHandler.php | 4 ++-- src/Validator/Constraints/BatchTimeAfterValidator.php | 6 +++--- src/Validator/Constraints/DateAfterValidator.php | 4 ++-- tests/Type/BaseTypeTestCase.php | 2 +- tests/Validator/Constraints/BatchTimeAfterValidatorTest.php | 2 +- tests/Validator/Constraints/DateAfterValidatorTest.php | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Handler/AbstractFormHandler.php b/src/Handler/AbstractFormHandler.php index f4c4b34..3114849 100644 --- a/src/Handler/AbstractFormHandler.php +++ b/src/Handler/AbstractFormHandler.php @@ -19,8 +19,8 @@ abstract class AbstractFormHandler implements FormHandlerInterface { /** - * @SuppressWarnings(PHPMD.CyclomaticComplexity) - * @SuppressWarnings(PHPMD.NPathComplexity) + * @SuppressWarnings("PHPMD.CyclomaticComplexity") + * @SuppressWarnings("PHPMD.NPathComplexity") */ final public function handle(FormInterface $form, Request $request, callable $callback): ?Response { diff --git a/src/Validator/Constraints/BatchTimeAfterValidator.php b/src/Validator/Constraints/BatchTimeAfterValidator.php index 6f20f77..c76f195 100644 --- a/src/Validator/Constraints/BatchTimeAfterValidator.php +++ b/src/Validator/Constraints/BatchTimeAfterValidator.php @@ -22,9 +22,9 @@ final class BatchTimeAfterValidator extends ConstraintValidator { /** - * @SuppressWarnings(PHPMD.CyclomaticComplexity) - * @SuppressWarnings(PHPMD.NPathComplexity) - * @SuppressWarnings(PHPMD.ExcessiveMethodLength) + * @SuppressWarnings("PHPMD.CyclomaticComplexity") + * @SuppressWarnings("PHPMD.NPathComplexity") + * @SuppressWarnings("PHPMD.ExcessiveMethodLength") * * @param mixed $value */ diff --git a/src/Validator/Constraints/DateAfterValidator.php b/src/Validator/Constraints/DateAfterValidator.php index f266e18..9d73f58 100644 --- a/src/Validator/Constraints/DateAfterValidator.php +++ b/src/Validator/Constraints/DateAfterValidator.php @@ -22,8 +22,8 @@ final class DateAfterValidator extends ConstraintValidator { /** - * @SuppressWarnings(PHPMD.CyclomaticComplexity) - * @SuppressWarnings(PHPMD.NPathComplexity) + * @SuppressWarnings("PHPMD.CyclomaticComplexity") + * @SuppressWarnings("PHPMD.NPathComplexity") * * @param mixed $value */ diff --git a/tests/Type/BaseTypeTestCase.php b/tests/Type/BaseTypeTestCase.php index 29811b6..48334a4 100644 --- a/tests/Type/BaseTypeTestCase.php +++ b/tests/Type/BaseTypeTestCase.php @@ -18,7 +18,7 @@ use Symfony\Component\Form\Test\TypeTestCase; /** - * @SuppressWarnings(PHPMD.TooManyPublicMethods) + * @SuppressWarnings("PHPMD.TooManyPublicMethods") */ abstract class BaseTypeTestCase extends TypeTestCase { diff --git a/tests/Validator/Constraints/BatchTimeAfterValidatorTest.php b/tests/Validator/Constraints/BatchTimeAfterValidatorTest.php index e629e7c..11d4897 100644 --- a/tests/Validator/Constraints/BatchTimeAfterValidatorTest.php +++ b/tests/Validator/Constraints/BatchTimeAfterValidatorTest.php @@ -22,7 +22,7 @@ use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; /** - * @SuppressWarnings(PHPMD.TooManyPublicMethods) + * @SuppressWarnings("PHPMD.TooManyPublicMethods") * * @extends ConstraintValidatorTestCase */ diff --git a/tests/Validator/Constraints/DateAfterValidatorTest.php b/tests/Validator/Constraints/DateAfterValidatorTest.php index b9213f2..c7e616c 100644 --- a/tests/Validator/Constraints/DateAfterValidatorTest.php +++ b/tests/Validator/Constraints/DateAfterValidatorTest.php @@ -21,7 +21,7 @@ use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; /** - * @SuppressWarnings(PHPMD.TooManyPublicMethods) + * @SuppressWarnings("PHPMD.TooManyPublicMethods") * * @extends ConstraintValidatorTestCase */ From a09ae1b05ff86eda91d512d434a4319881abccf9 Mon Sep 17 00:00:00 2001 From: core23 Date: Sun, 9 Feb 2025 11:30:14 +0100 Subject: [PATCH 3/3] Update phpstan baseline --- phpstan-baseline.neon | 279 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 266 insertions(+), 13 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 597e6f7..73e7902 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,67 +1,320 @@ parameters: ignoreErrors: - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Method Nucleos\\Form\\Handler\\AbstractFormHandler\:\:handle\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Handler/AbstractFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Handler\\AbstractFormHandler\:\:postProcess\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Handler/AbstractFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Handler\\AbstractFormHandler\:\:preProcess\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Handler/AbstractFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Handler\\AbstractFormHandler\:\:process\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Handler/AbstractFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Handler\\AbstractFormHandler\:\:validate\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Handler/AbstractFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Handler\\FormHandlerInterface\:\:handle\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Handler/FormHandlerInterface.php + + - + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed count: 1 path: src/Model/BatchTime.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" + message: '#^Property Nucleos\\Form\\Test\\AbstractFormHandlerTest\:\:\$form with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Test/AbstractFormHandlerTest.php + + - + message: '#^Class Nucleos\\Form\\Type\\BatchTimeType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/BatchTimeType.php + + - + message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' + identifier: ternary.shortNotAllowed count: 1 path: src/Type/BatchTimeType.php - - message: "#^Method Nucleos\\\\Form\\\\Tests\\\\Bridge\\\\Symfony\\\\App\\\\AppKernel\\:\\:configureContainer\\(\\) has parameter \\$container with no type specified\\.$#" + message: '#^Class Nucleos\\Form\\Type\\DACHCountryType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/DACHCountryType.php + + - + message: '#^Method Nucleos\\Form\\Type\\DACHCountryType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/DACHCountryType.php + + - + message: '#^Class Nucleos\\Form\\Type\\DateOutputType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/DateOutputType.php + + - + message: '#^Method Nucleos\\Form\\Type\\DateOutputType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/DateOutputType.php + + - + message: '#^Class Nucleos\\Form\\Type\\DoctrineDiscriminatorType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/DoctrineDiscriminatorType.php + + - + message: '#^Method Nucleos\\Form\\Type\\DoctrineDiscriminatorType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/DoctrineDiscriminatorType.php + + - + message: '#^Class Nucleos\\Form\\Type\\GenderType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/GenderType.php + + - + message: '#^Method Nucleos\\Form\\Type\\GenderType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/GenderType.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Type/JsonType.php + + - + message: '#^Call to function is_array\(\) with array\ will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Type/JsonType.php + + - + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Type/JsonType.php + + - + message: '#^Class Nucleos\\Form\\Type\\JsonType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/JsonType.php + + - + message: '#^Method Nucleos\\Form\\Type\\JsonType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/JsonType.php + + - + message: '#^Method Nucleos\\Form\\Type\\JsonType\:\:reverseTransform\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/JsonType.php + + - + message: '#^Class Nucleos\\Form\\Type\\NumberOutputType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/NumberOutputType.php + + - + message: '#^Method Nucleos\\Form\\Type\\NumberOutputType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/NumberOutputType.php + + - + message: '#^Class Nucleos\\Form\\Type\\OutputType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/OutputType.php + + - + message: '#^Class Nucleos\\Form\\Type\\TimePickerType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/Type/TimePickerType.php + + - + message: '#^Method Nucleos\\Form\\Type\\TimePickerType\:\:getParent\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: src/Type/TimePickerType.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Bridge\\Symfony\\App\\AppKernel\:\:configureContainer\(\) has parameter \$container with no type specified\.$#' + identifier: missingType.parameter count: 1 path: tests/Bridge/Symfony/App/AppKernel.php - - message: "#^Method Nucleos\\\\Form\\\\Tests\\\\Bridge\\\\Symfony\\\\App\\\\AppKernel\\:\\:configureContainer\\(\\) has parameter \\$loader with no type specified\\.$#" + message: '#^Method Nucleos\\Form\\Tests\\Bridge\\Symfony\\App\\AppKernel\:\:configureContainer\(\) has parameter \$loader with no type specified\.$#' + identifier: missingType.parameter count: 1 path: tests/Bridge/Symfony/App/AppKernel.php - - message: "#^Method Nucleos\\\\Form\\\\Tests\\\\Bridge\\\\Symfony\\\\App\\\\AppKernel\\:\\:configureRoutes\\(\\) has parameter \\$routes with no type specified\\.$#" + message: '#^Method Nucleos\\Form\\Tests\\Bridge\\Symfony\\App\\AppKernel\:\:configureRoutes\(\) has parameter \$routes with no type specified\.$#' + identifier: missingType.parameter count: 1 path: tests/Bridge/Symfony/App/AppKernel.php - - message: "#^Call to method getResponse\\(\\) on an unknown class Symfony\\\\Component\\\\HttpKernel\\\\Client\\.$#" + message: '#^Call to method getResponse\(\) on an unknown class Symfony\\Component\\HttpKernel\\Client\.$#' + identifier: class.notFound count: 1 path: tests/Bridge/Symfony/Bundle/BundleIntegrationTest.php - - message: "#^Call to method request\\(\\) on an unknown class Symfony\\\\Component\\\\HttpKernel\\\\Client\\.$#" + message: '#^Call to method request\(\) on an unknown class Symfony\\Component\\HttpKernel\\Client\.$#' + identifier: class.notFound count: 1 path: tests/Bridge/Symfony/Bundle/BundleIntegrationTest.php - - message: "#^Instantiated class Symfony\\\\Component\\\\HttpKernel\\\\Client not found\\.$#" + message: '#^Instantiated class Symfony\\Component\\HttpKernel\\Client not found\.$#' + identifier: class.notFound count: 1 path: tests/Bridge/Symfony/Bundle/BundleIntegrationTest.php - - message: "#^Property Nucleos\\\\Form\\\\Tests\\\\Type\\\\DoctrineDiscriminatorTypeTest\\:\\:\\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Nucleos\\Form\\Tests\\Fixtures\\AlwaysErrorFormHandler\:\:postProcess\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Fixtures/AlwaysErrorFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Fixtures\\AlwaysErrorFormHandler\:\:preProcess\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Fixtures/AlwaysErrorFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Fixtures\\AlwaysErrorFormHandler\:\:preProcess\(\) never returns null so it can be removed from the return type\.$#' + identifier: return.unusedType + count: 1 + path: tests/Fixtures/AlwaysErrorFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Fixtures\\AlwaysErrorFormHandler\:\:process\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Fixtures/AlwaysErrorFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Fixtures\\DemoFormHandler\:\:process\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Fixtures/DemoFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Fixtures\\SimpleFormHandler\:\:process\(\) has parameter \$form with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Fixtures/SimpleFormHandler.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\BaseTypeTestCase\:\:create\(\) return type with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/BaseTypeTestCase.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\BaseTypeTestCase\:\:createBuilder\(\) return type with generic interface Symfony\\Component\\Form\\FormBuilderInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/BaseTypeTestCase.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\BaseTypeTestCase\:\:createNamed\(\) return type with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/BaseTypeTestCase.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\DoctrineDiscriminatorTypeTest\:\:create\(\) return type with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/DoctrineDiscriminatorTypeTest.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\DoctrineDiscriminatorTypeTest\:\:createBuilder\(\) return type with generic interface Symfony\\Component\\Form\\FormBuilderInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/DoctrineDiscriminatorTypeTest.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\DoctrineDiscriminatorTypeTest\:\:createNamed\(\) return type with generic interface Symfony\\Component\\Form\\FormInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/DoctrineDiscriminatorTypeTest.php + + - + message: '#^Method Nucleos\\Form\\Tests\\Type\\DoctrineDiscriminatorTypeTest\:\:getTypes\(\) return type with generic interface Symfony\\Component\\Form\\FormTypeInterface does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: tests/Type/DoctrineDiscriminatorTypeTest.php + + - + message: '#^Property Nucleos\\Form\\Tests\\Type\\DoctrineDiscriminatorTypeTest\:\:\$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: tests/Type/DoctrineDiscriminatorTypeTest.php - - message: "#^Trying to mock an undefined method getBegin\\(\\) on class stdClass\\.$#" + message: '#^Trying to mock an undefined method getBegin\(\) on class stdClass\.$#' + identifier: phpunit.mockMethod count: 13 path: tests/Validator/Constraints/BatchTimeAfterValidatorTest.php - - message: "#^Trying to mock an undefined method getEnd\\(\\) on class stdClass\\.$#" + message: '#^Trying to mock an undefined method getEnd\(\) on class stdClass\.$#' + identifier: phpunit.mockMethod count: 13 path: tests/Validator/Constraints/BatchTimeAfterValidatorTest.php - - message: "#^Trying to mock an undefined method getBegin\\(\\) on class stdClass\\.$#" + message: '#^Trying to mock an undefined method getBegin\(\) on class stdClass\.$#' + identifier: phpunit.mockMethod count: 11 path: tests/Validator/Constraints/DateAfterValidatorTest.php - - message: "#^Trying to mock an undefined method getEnd\\(\\) on class stdClass\\.$#" + message: '#^Trying to mock an undefined method getEnd\(\) on class stdClass\.$#' + identifier: phpunit.mockMethod count: 11 path: tests/Validator/Constraints/DateAfterValidatorTest.php