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 Sep 1, 2023
1 parent d02e836 commit 98954a8
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,14 +16,18 @@ 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 ipl\\Sql\\Connection::lastInsertId\(\)#'

- '#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 98954a8

Please sign in to comment.