From 32be88d796fa3404293e0c08c99369486e3ccd32 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 7 Feb 2023 11:00:59 -0800 Subject: [PATCH] Psalm and phpstan configs Signed-off-by: snipe --- phpstan.neon | 22 ++++++++++++++++++++++ psalm.xml | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 phpstan.neon create mode 100644 psalm.xml diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000000..12cdbff72a --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,22 @@ +parameters: + paths: + - app + - resources/views + - resources/lang + - database/migrations + - config + + level: 4 + + ignoreErrors: + - '#Class, interface or enum named #' + - '#Call to an undefined static method App\\Models\\.*::where.*\(\)#' + - '#Call to an undefined static method App\\Models\\.*::firstOr.*\(\)#' + - '#Call to an undefined static method App\\Models\\.*::find.*\(\)#' + - '#Call to an undefined static method App\\Models\\.*::get.*\(\)#' + - '#Call to an undefined static method App\\Models\\.*::has.*\(\)#' + - '#Call to static method info\(\) on an unknown class Log#' + - '#Call to static method debug\(\) on an unknown class Log#' + - '#Call to static method getSchemaBuilder\(\) on an unknown class DB#' + - '#Call to static method call\(\) on an unknown class Artisan.#' + diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000000..4c8b877262 --- /dev/null +++ b/psalm.xml @@ -0,0 +1,18 @@ + + + + + + + + + + +