implemented DuplicateDeclarationRule, fixes phpstan/phpstan#3475#250
implemented DuplicateDeclarationRule, fixes phpstan/phpstan#3475#250dktapps wants to merge 10 commits intophpstan:masterfrom pmmp:duplicate-declarations-rule
Conversation
ondrejmirtes
left a comment
There was a problem hiding this comment.
This is mostly fine, thank you :)
| $this->analyse( | ||
| [ | ||
| __DIR__ . '/data/duplicate-declarations.php', | ||
| ], |
There was a problem hiding this comment.
the indentation looks wrong
There was a problem hiding this comment.
are you sure? it's the same as this one locally: https://github.com/phpstan/phpstan-src/blob/master/tests/PHPStan/Rules/Classes/ClassConstantRuleTest.php
There was a problem hiding this comment.
Oh sorry, you're right. Anyway, look at the failing build. The files can be excluded from lint like this
Lines 118 to 150 in 6425cdf
There was a problem hiding this comment.
Thanks. I noticed it had failed but I wasn't sure what to do about it.
|
Skip the tests in case self::$useStaticReflectionProvider is false. There are many tests skipped like this. |
|
Merged as 5e2ba1a, thank you. |
No description provided.