Skip to content

Commit

Permalink
Add common ignore errors pattern to phpstan config
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Aug 23, 2023
1 parent 2e9679c commit d1255ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ parameters:
- vendor

ignoreErrors:
-
messages:
- '#Unsafe usage of new static\(\)#'
- '#. but return statement is missing#'
reportUnmatched: false

- '#Call to an undefined method React\\Promise#'

- '#Call to an undefined method Icinga\\Application\\ApplicationBootstrap::getRequest\(\)#'
Expand All @@ -24,8 +30,6 @@ parameters:

- '#Access to an undefined property React\\Socket\\ConnectionInterface::\$stream#'

- '#.* but return statement is missing#'

- '#Binary operation .* between GMP and .* results in an error#'

universalObjectCratesClasses:
Expand Down

0 comments on commit d1255ba

Please sign in to comment.