Closed
Description
Symfony version(s) affected: Symfony/Serializer v4.1.1
Description
Stray character in symfony/serializer/Tests/Fixtures/NullableConstructorArgumentDummy.php
How to reproduce
From the command line:
mkdir symfony-broken
cd symfony-broken
composer require symfony/serializer
php -l vendor/symfony/serializer/Tests/Fixtures/NullableConstructorArgumentDummy.php
PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in vendor/symfony/serializer/Tests/Fixtures/NullableConstructorArgumentDummy.php on line 18
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in vendor/symfony/serializer/Tests/Fixtures/NullableConstructorArgumentDummy.php on line 18
Errors parsing vendor/symfony/serializer/Tests/Fixtures/NullableConstructorArgumentDummy.php
Possible Solution
Remove the stray ? character in the __construct(?\stdClass $foo) on line 18
Additional context
Not sure where this is included but I have a linter which runs across all files across my entire project and that's how this was picked up.
Metadata
Metadata
Assignees
Labels
No labels