Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:ampproject/amp-wp into feature/5…
Browse files Browse the repository at this point in the history
…015-react-post-template-settings

* 'develop' of github.com:ampproject/amp-wp:
  Ignore write-only property errors
  Ignore unused private message errors
  • Loading branch information
westonruter committed Jul 16, 2020
2 parents bb33de8 + c7e3a80 commit a8fd8a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/common/phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ parameters:
- src/
ignoreErrors:
- '#^PHPDoc tag @throws with type AmpProject\\Exception\\FailedRemoteRequest is not subtype of Throwable$#'
# See https://github.com/phpstan/phpstan/issues/3611
- '#^Class .*? has an unused method .*?\(\)\.$#'
5 changes: 5 additions & 0 deletions lib/optimizer/phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ parameters:
inferPrivatePropertyTypeFromConstructor: true
paths:
- src/
ignoreErrors:
# See https://github.com/phpstan/phpstan/issues/3611
- '#^Class .*? has an unused method .*?\(\)\.$#'
# See https://github.com/phpstan/phpstan/issues/3613
- '#^Class AmpProject\\Optimizer\\Transformer\\ReorderHead has a write-only property .*?\.$#'

0 comments on commit a8fd8a8

Please sign in to comment.