We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PEAR.Commenting.FunctionComment does not recognize intersect typehints
PEAR.Commenting.FunctionComment
/** * Inject a service into the container mock. * * Adjust `has('service')` and `get('service')` returns. * - * @param ContainerInterface&MockObject $container + * @param ContainerInterface &MockObject $container * @param mixed $service */ protected function injectServiceInContainer(MockObject $container, string $serviceName, $service) : void {
Return type is unaffected so it looks like sniff considers & to be pass-by-reference symbol of parameter name.
Quite likely it happens in other places with variable names after type declaration too, like with inline @var
@var
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PEAR.Commenting.FunctionComment
does not recognize intersect typehintsReturn type is unaffected so it looks like sniff considers & to be pass-by-reference symbol of parameter name.
Quite likely it happens in other places with variable names after type declaration too, like with inline
@var
The text was updated successfully, but these errors were encountered: