You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Symfony to version 7.2.1, my project stopped working with the following error:
Symfony\Component\TypeInfo\Type::union(): Return value must be of type Symfony\Component\TypeInfo\Type\UnionType, Symfony\Component\TypeInfo\Type\BuiltinType returned
The issue seems to be related to changes introduced in Symfony 7.2, specifically in the redesigned TypeInfo component, as explained in this blog post: New in Symfony 7.2: Redesigned TypeInfo Component.
How to reproduce
Steps to Reproduce:
Use Symfony 7.2.1.
Open any application page.
Expected Behavior:
The application page should be processed normally without any errors.
Steps Taken:
Updated all dependencies to their latest versions.
Cleared the Symfony cache (php bin/console cache:clear).
Verified that the error disappears when downgrading Symfony to version 7.2.1.
Please let me know if further details or logs are needed.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I searched the project and actually found this line mixed|null : http://prntscr.com/wht0YfMTRyJy
when this line is there - there is an error
when I deleted this line, the error disappeared and the page opens without errors
This PR was merged into the 7.2 branch.
Discussion
----------
[TypeInfo] Fix PHPDoc resolving of union with mixed
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix#59258, Fix#59223
| License | MIT
Resolve "invalid" union PHPDoc with `mixed` standalone type as `mixed` type.
Commits
-------
cc8670d [TypeInfo] Fix PHPDoc resolving of union with mixed
Symfony version(s) affected
7.2.1
Description
After upgrading Symfony to version 7.2.1, my project stopped working with the following error:
Symfony\Component\TypeInfo\Type::union(): Return value must be of type Symfony\Component\TypeInfo\Type\UnionType, Symfony\Component\TypeInfo\Type\BuiltinType returned
The issue seems to be related to changes introduced in Symfony 7.2, specifically in the redesigned TypeInfo component, as explained in this blog post: New in Symfony 7.2: Redesigned TypeInfo Component.
How to reproduce
Steps to Reproduce:
Use Symfony 7.2.1.
Open any application page.
Expected Behavior:
The application page should be processed normally without any errors.
Actual Behavior:
The error mentioned above is thrown, and the application fails to start.
http://prntscr.com/Q8XV-Y0k2tzy
Steps Taken:
Updated all dependencies to their latest versions.
Cleared the Symfony cache (php bin/console cache:clear).
Verified that the error disappears when downgrading Symfony to version 7.2.1.
Please let me know if further details or logs are needed.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: