diff --git a/composer.json b/composer.json index daedadb0..86dc0d53 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,10 @@ "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^9.6.20", "ramsey/uuid": "^4.2", - "symfony/cache": "^5.4" + "symfony/cache": "^5.4", + "symfony/doctrine-bridge": "^5.4", + "symfony/validator": "^5.4", + "symfony/uid": "^5.4" }, "config": { "sort-packages": true, diff --git a/extension.neon b/extension.neon index 93102dc0..83aa7cff 100644 --- a/extension.neon +++ b/extension.neon @@ -412,6 +412,9 @@ services: tags: [phpstan.doctrine.typeDescriptor] arguments: uuidTypeName: Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType + - + class: PHPStan\Type\Doctrine\Descriptors\Symfony\UuidTypeDescriptor + tags: [phpstan.doctrine.typeDescriptor] # Doctrine Collection - diff --git a/src/Type/Doctrine/Descriptors/Symfony/UuidTypeDescriptor.php b/src/Type/Doctrine/Descriptors/Symfony/UuidTypeDescriptor.php new file mode 100644 index 00000000..afab3bb7 --- /dev/null +++ b/src/Type/Doctrine/Descriptors/Symfony/UuidTypeDescriptor.php @@ -0,0 +1,35 @@ +