From 2b34e315e7d5cd5e26da73918e4851aa2de2ea71 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 8 Apr 2024 20:10:06 +0900 Subject: [PATCH 1/2] chore: fix PHP version for Psalm to 8.1 PHP 7.4 causes UndefinedFunction errors. Error: src/Auth.php:54:15: MissingDependency: CodeIgniter\Shield\Models\UserModel depends on class or interface codeigniter\basemodel that does not exist (see https://psalm.dev/157) --- psalm.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/psalm.xml b/psalm.xml index 5ea186498..8f2c337d9 100644 --- a/psalm.xml +++ b/psalm.xml @@ -1,5 +1,6 @@ Date: Mon, 8 Apr 2024 20:15:50 +0900 Subject: [PATCH 2/2] chore: add findUnusedBaselineEntry and findUnusedCode It is better to set "true" but if true, many error will be reported. So set "false" for now. --- psalm.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/psalm.xml b/psalm.xml index 8f2c337d9..5b3a32593 100644 --- a/psalm.xml +++ b/psalm.xml @@ -9,6 +9,8 @@ autoloader="psalm_autoload.php" cacheDirectory="build/psalm/" errorBaseline="psalm-baseline.xml" + findUnusedBaselineEntry="false" + findUnusedCode="false" >