-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Argument #1 ($string) must be of type string #1560
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
Comments
This screenshot does not help, because it gives me a truncated info (I cannot scroll the page inside it or expand collapsible sections). Please also describe on which page you get this error (and which action you are doing) to allow reproducing the issue. |
|
`TypeError: at src/Entity/Post.php:111 |
the problem is in this code:
from PostType.php file and also in this code:
from TagArrayToStringTransformer fixed with chatGPT |
you still haven't answered my request of providing the reproducing steps |
just try to add a post , in a server with php 8.4 and add for your php files strict_types
|
Well, if you modify the code, you have of course make sure to do it consistently. Simply enabling strict types is not enough as you also may have to adjust some calls. |
I enabled strict_types in all php files |
I understood that and that’s simply not something you can do blindly without checking if the code contained in that file needs to be adapted. I am closing here as that’s not an issue of the demo code but how you deal with it. Thank you for understanding. |
The text was updated successfully, but these errors were encountered: