Commit 95dc9a6
committed
Ruleset: prevent false positives on Symfony polyfill code
When `PHPCompatibility(SymfonyPolyfillPHPxx)` is run over the code in the Symfony polyfill repos itself, it will detect some non-issues.
The code in the files is all wrapped within proper `defined()`, `version_compare()` and/or `function_exists()` conditions and will never be executed on incompatible PHP versions.
This simple change prevents these non-issues from being reported.
This fix does rely on people having installed the package in a directory called `polyfill-php##`.1 parent 83d18e6 commit 95dc9a6
2 files changed
Lines changed: 10 additions & 0 deletions
File tree
- PHPCompatibilitySymfonyPolyfillPHP55
- PHPCompatibilitySymfonyPolyfillPHP72
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
0 commit comments