diff --git a/lib/SaferpayJson/Request/Request.php b/lib/SaferpayJson/Request/Request.php index f6d0e00..c3c042f 100644 --- a/lib/SaferpayJson/Request/Request.php +++ b/lib/SaferpayJson/Request/Request.php @@ -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'); } diff --git a/phpstan.neon b/phpstan.neon index cc07184..ad82a24 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -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.#'