Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ErrorHandler] fix parsing of complexe type#63108

Merged
nicolas-grekas merged 1 commit into
symfony:6.4from
jderusse:fix-parse
Jan 20, 2026
Merged

[ErrorHandler] fix parsing of complexe type#63108
nicolas-grekas merged 1 commit into
symfony:6.4from
jderusse:fix-parse

Conversation

@jderusse
Copy link
Copy Markdown
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues n/a
License MIT

The DebugClassLoader fails to parse complexe method signatures like array<string>|null getProperties() (ie. used here https://github.com/api-platform/core/blob/f103c2cedd55cf3bf84bc620a9108e5d8f1c24ea/src/Doctrine/Common/Filter/PropertyAwareFilterInterface.php#L21)

As a result method's name and return type are mixed, and the underlying checks are invalid.

ie:

Class "ApiPlatform\Doctrine\Orm\Filter\SearchFilter" should implement method "ApiPlatform\Doctrine\Common\Filter\PropertyAwareFilterInterface::|null(): array": getProperties().

Comment thread src/Symfony/Component/ErrorHandler/DebugClassLoader.php Outdated
Comment thread src/Symfony/Component/ErrorHandler/Tests/Fixtures/VirtualInterface.php Outdated
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit 4f55bbb into symfony:6.4 Jan 20, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants