-
Notifications
You must be signed in to change notification settings - Fork 399
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
PHPStorm code inspection errors #1975
Comments
@paweltfit, I see a fully qualified class name has been missed here. Just provided a fix for that here - #1989 |
@tsybenko normally FQCN should not be required here, as there is a declaration of the Collection type in the use statement above. I checked in the older version of PHPStorm 2023, and it doesn't show such an error (it doesn't understand intersection type & either, not not error). Does FQCN solve the problem in the newer versions? |
After an update to PHPStorm to 2023.3.3, I can also see it. Phpstorm started to wrongly recognise psalm notations: here it recognised Collection as a class name, however the right class name is "findBy..". |
@paweltfit Thanks for reporting this issue with new IDE version. |
Hello,
During its inspection, PHPStorm returns errors like these in generated base query classes, complaining that the method
Collection
is already defined:The code still works fine but obviously it's a bit inconvenient. I dealt with it by removing the following piece of code from the
baseQueryClassHeader.php
file, deleting all query classes and then re-runningpropel model:build
:Another issue is the word
match
in the same file - it's now a reserved word in PHP so some comments were highlighting it as an error. I fixed it by puttingmatch
between single quotes on line 67.What are your thoughts?
The text was updated successfully, but these errors were encountered: