-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
PHP Integrator 3.1 Linter errors #349
Comments
Hello. There are a couple of things to address here, I'll handle them one by one. Firstly, the When a tag is not in the set of recognized tags, the core assumes that this tag must be an annotation, such as a Doctrine annotation, which are actually classes themselves, hence this error. In any case, it is likely that docblock tag linting will get removed at some point, although I'd need to either also disable class annotation linting as well, or make assumptions about what constitutes a docblock tag and a class annotation. It is also strange that you did not get this error before, as this behavior and support for class annotations has been in the core for quite some time now. Secondly, the In other words, all of these are equivalent and their docblock type should be function (LoopInterface $loop = null)
function (?LoopInterface $loop = null)
function (?LoopInterface $loop) To mention just Finally, the error about functions such as As point #1 is already handled in a ticket, #2 is not a bug and #3 is also handled by another ticket, I'll close this. If you have any further questions, I'll continue to answer them, of course. |
Seem like docblock linting is already removed on last release. |
I've posted a workaround for getting rid of the error on a custom annotation like |
I've upgraded to the newest version and now PHP Integrator lints docblocks and thinks that phpdoc tags like
@access
is a class and therefore shows an error thataccess is not a classlike defined or imported anywhere
. Even PHP function as\array_merge
get linted as "it doesn't exist".Moreover
@param
doc blocks gets strictly compared with the function signature, as the default value has to be now in the@param
tag. This was before not the behaviour. For exampledoesn't work together with
on PHP Integrator 3.1, but worked previously.
Using PHP Integrator 3.1.0, with PHP 7.1.11 x86 and Atom 1.21.1 on Windows 7 x64 Professional.
The text was updated successfully, but these errors were encountered: