| 1 | <?php |
||
| 13 | final class ExcludedSniffDataCollector |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string[] |
||
| 17 | */ |
||
| 18 | private $excludedSniffCodes = []; |
||
| 19 | |||
| 20 | 6 | public function collectFromRuleXmlElement(SimpleXMLElement $ruleXmlElement) |
|
| 26 | |||
| 27 | 1 | public function addExcludedSniff(string $excludedSniffCode) |
|
| 31 | |||
| 32 | 6 | public function addExcludedSniffs(array $excludedSniffCodes) |
|
| 36 | |||
| 37 | 9 | public function isSniffClassExcluded(string $sniffClassName) : bool |
|
| 42 | |||
| 43 | 9 | public function isSniffCodeExcluded(string $sniffCode) : bool |
|
| 47 | } |
||
| 48 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..