Skip to content

Commit

Permalink
Ignore PHPStan quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Apr 15, 2023
1 parent feb34d2 commit 05e5414
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/SaferpayJson/Request/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ private function getContent(): string
private function getSerializer(): SerializerInterface
{
// Support for doctrine/annotations 1.x
// @phpstan-ignore-next-line
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
// @phpstan-ignore-next-line
AnnotationRegistry::registerLoader('class_exists');
}

Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
paths:
- lib
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
message: '#Property [a-zA-Z0-9\\]+::\$[a-zA-Z0-9]+ is never written, only read.#'
Expand Down

0 comments on commit 05e5414

Please sign in to comment.