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
SlevomatCodingStandard.TypeHints.ParameterTypeHint
<?php declare(strict_types = 1); interface A {} interface B {} interface C {} interface D {} interface Bug { public function bug( (A&B)|C|D $a, A|(B&C)|D $b, A|B|(C&D) $c, ): void; }
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor-bin/phpcs/vendor/squizlabs/php_codesniffer/phpcs.xsd"> <config name="installed_paths" value="../../slevomat/coding-standard"/> <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/> </ruleset>
Reports that:
14 | ERROR | Method \Bug\Bug::bug() does not have parameter type hint nor @param annotation for its parameter $c.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reports that:
14 | ERROR | Method \Bug\Bug::bug() does not have parameter type hint nor @param annotation for its parameter $c.
The text was updated successfully, but these errors were encountered: