Open
Description
Symfony version(s) affected
7.3.0
Description
File validator constraint
@param self::FILENAME_COUNT_*|null $filenameCountUnit The character count unit used for checking the filename length (defaults to {@see File::FILENAME_COUNT_BYTES})
Exception
"class": "Symfony\\Component\\TypeInfo\\Exception\\UnsupportedException",
"message": "Cannot resolve \"(self::FILENAME_COUNT_* | null)\".",
"code": 0,
"file": "/.../vendor/symfony/type-info/TypeResolver/StringTypeResolver.php:88",
"trace": [
"/.../vendor/symfony/property-info/Extractor/PhpStanExtractor.php:254",
"/.../vendor/symfony/property-info/Extractor/ConstructorExtractor.php:35",
"/.../vendor/symfony/property-info/PropertyInfoExtractor.php:70",
"/.../vendor/symfony/property-info/PropertyInfoCacheExtractor.php:87",
"/.../vendor/symfony/validator/Mapping/Loader/PropertyInfoLoader.php:193",
How to reproduce
$constructorExtractor = new ConstructorExtractor([new PhpStanExtractor()]);
$constructorExtractor->getType(File::class, 'filenameCountUnit');
Possible Solution
No response
Additional Context
No response