-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should prevent whole swathes of bugs, especially once we increase the rule level.
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
parameters: | ||
level: 2 | ||
|
||
paths: | ||
- library/ | ||
- src/ | ||
- tests/ | ||
|
||
ignoreErrors: | ||
# Not used since https://github.com/simplepie/simplepie/commit/b2eb0134d53921e75f0fa70b1cf901ed82b988b1 but cannot be removed due to BC. | ||
- '(Constructor of class SimplePie\\Enclosure has an unused parameter \$javascript\.)' | ||
|
||
# Testing legacy dynamic property usage. | ||
- '(Access to an undefined property SimplePie.IRI::\$nonexistant_prop\.)' | ||
|
||
# PHPStan stubs bug https://github.com/phpstan/phpstan/issues/8629 | ||
- | ||
message: '(^Access to an undefined property XMLReader::\$\w+\.$)' | ||
# Only occurs on PHP ≥ 8.2 | ||
reportUnmatched: false |