From 65c4509297649cbd51d95301d2aa5b37cb5fc171 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Tue, 20 Feb 2024 23:31:17 -0400 Subject: [PATCH] Added phpstan baseline --- .gitattributes | 1 + phpstan-baseline.neon | 6 ++++++ phpstan.neon | 1 + 3 files changed, 8 insertions(+) create mode 100644 phpstan-baseline.neon diff --git a/.gitattributes b/.gitattributes index d90daf1..0c5892c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,4 +5,5 @@ /.gitignore export-ignore /phpcs.xml export-ignore /phpstan.neon export-ignore +/phpstan-baseline.neon export-ignore /phpunit.xml export-ignore diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..9fa597c --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,6 @@ +parameters: + ignoreErrors: + - + message: "#^Parameter \\#2 \\$callback of method flight\\\\core\\\\Dispatcher\\:\\:set\\(\\) expects Closure\\(\\)\\: mixed, array\\{\\$this\\(flight\\\\Engine\\), literal\\-string&non\\-falsy\\-string\\} given\\.$#" + count: 1 + path: flight/Engine.php diff --git a/phpstan.neon b/phpstan.neon index 95afff0..97e16eb 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,6 @@ includes: - vendor/phpstan/phpstan/conf/bleedingEdge.neon + - phpstan-baseline.neon parameters: level: 6