From f4b918ef3fa9da7dcbe006e60d46a93aaedf9c46 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Fri, 24 Jan 2025 16:57:23 +0100 Subject: [PATCH] Ignore errors related to classes coming from `slub-web-digas` repository This repository can not be included in composer as it is internal repository --- .github/phpstan.neon | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/phpstan.neon b/.github/phpstan.neon index f495dbb..ac53927 100644 --- a/.github/phpstan.neon +++ b/.github/phpstan.neon @@ -1,5 +1,10 @@ parameters: - level: 5 - paths: - - ../Classes/ - treatPhpDocTypesAsCertain: false + ignoreErrors: + - '#Class Slub\\SlubWebDigas\\[a-zA-Z0-9\\_] not found\.#' + - '#Method [a-zA-Z0-9\\_]::[a-zA-Z]\(\) has invalid return type Slub\\SlubWebDigas\\[a-zA-Z0-9\\_]\.#' + - '#Parameter $[a-zA-Z] of method [a-zA-Z0-9\\_]::[a-zA-Z]\(\) has invalid type Slub\\SlubWebDigas\\[a-zA-Z0-9\\_]\.#' + - '#Property [a-zA-Z0-9\\_]::\$[a-zA-Z] has unknown class Slub\\SlubWebDigas\\[a-zA-Z0-9\\_] as is type\.#' + level: 5 + paths: + - ../Classes/ + treatPhpDocTypesAsCertain: false