-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert type casting because Symfony forms can return integer keys #369
Conversation
Build is failing, can you fix it? |
I don't have many experience with PHP Stan. Do you know how I can solve this @jordisala1991? |
@willemverspyck in this case probably the most sane solution will be to instruct phpstan to ignore these 2 errors in particular, but I guess that's up to @jordisala1991 to say :). See here for the various ways phpstan allows you to do that, should that be the course of action taken here. |
Thanks @nocive. I though there was a way to define it can also be integer, but just added the ignore comments 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wdyt @VincentLanglet since you previously changed the code
I think it's all related to phpstan/phpstan-symfony#274 The issue is the following:
I wonder if we should
|
I opened an issue in Symfony symfony/symfony#46698 |
Thanks guys! In the meantime is it possible to get this one in and release it? |
Will be solved in 6.2 by symfony/symfony#46813 |
Subject
I am targeting this branch, because BC.
Closes #368.
Changelog