diff --git a/composer.json b/composer.json index 7dcc1e6b..bb449c6c 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": "^7.4 || ^8.0", "ext-simplexml": "*", - "phpstan/phpstan": "^2.1.13" + "phpstan/phpstan": "^2.2.0" }, "conflict": { "symfony/framework-bundle": "<3.0" diff --git a/src/Stubs/Symfony/StubFilesExtensionLoader.php b/src/Stubs/Symfony/StubFilesExtensionLoader.php index 9b4ea3be..685f058a 100644 --- a/src/Stubs/Symfony/StubFilesExtensionLoader.php +++ b/src/Stubs/Symfony/StubFilesExtensionLoader.php @@ -142,6 +142,10 @@ public function getFiles(): array $files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub'; } + if ($this->isInstalledVersionBelow('symfony/uuid', '8.2.0.0')) { + $files[] = $stubsDir . '/Symfony/Component/Uid/AbstractUuid.stub'; + } + if ($this->isInstalledVersionBelow('symfony/validator', '5.4.0.0')) { $files[] = $stubsDir . '/Symfony/Component/Validator/ConstraintViolationInterface.stub'; $files[] = $stubsDir . '/Symfony/Component/Validator/ConstraintViolationListInterface.stub'; diff --git a/stubs/Symfony/Component/Uid/AbstractUid.stub b/stubs/Symfony/Component/Uid/AbstractUid.stub new file mode 100644 index 00000000..17581887 --- /dev/null +++ b/stubs/Symfony/Component/Uid/AbstractUid.stub @@ -0,0 +1,41 @@ +