From f2571a94a1b2d0eb4582d5de3ff6d48332c24643 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 5 Apr 2024 10:32:39 +0900 Subject: [PATCH] chore: vendor/bin/phpstan analyze --generate-baseline phpstan-baseline.php --- phpstan-baseline.php | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 65f52c677..0b47303f5 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -14,7 +14,7 @@ ]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 2, + 'count' => 1, 'path' => __DIR__ . '/src/Authentication/Actions/Email2FA.php', ]; $ignoreErrors[] = [ @@ -45,7 +45,7 @@ ]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 4, + 'count' => 2, 'path' => __DIR__ . '/src/Authentication/Authenticators/AccessTokens.php', ]; $ignoreErrors[] = [ @@ -95,16 +95,6 @@ ]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 3, - 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Only booleans are allowed in an if condition, CodeIgniter\\\\Shield\\\\Entities\\\\UserIdentity\\|null given\\.$#', 'count' => 1, 'path' => __DIR__ . '/src/Authentication/Authenticators/Session.php', ]; @@ -130,17 +120,7 @@ ]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Authentication/Passwords.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Authentication/Passwords/CompositionValidator.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 5, + 'count' => 4, 'path' => __DIR__ . '/src/Authentication/Passwords/NothingPersonalValidator.php', ]; $ignoreErrors[] = [ @@ -148,11 +128,6 @@ 'count' => 2, 'path' => __DIR__ . '/src/Authentication/Passwords/ValidationRules.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Authentication/Passwords/ValidationRules.php', -]; $ignoreErrors[] = [ 'message' => '#^Only booleans are allowed in &&, CodeIgniter\\\\Shield\\\\Entities\\\\User\\|null given on the right side\\.$#', 'count' => 1, @@ -249,11 +224,6 @@ 'count' => 1, 'path' => __DIR__ . '/src/Entities/Entity.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/src/Entities/Group.php', -]; $ignoreErrors[] = [ 'message' => '#^Call to function model with CodeIgniter\\\\Shield\\\\Models\\\\GroupModel\\:\\:class is discouraged\\.$#', 'count' => 2, @@ -276,7 +246,7 @@ ]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 8, + 'count' => 7, 'path' => __DIR__ . '/src/Entities/User.php', ]; $ignoreErrors[] = [ @@ -366,11 +336,6 @@ 'count' => 8, 'path' => __DIR__ . '/tests/Authentication/Authenticators/SessionAuthenticatorTest.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/tests/Authentication/Filters/AbstractFilterTestCase.php', -]; $ignoreErrors[] = [ 'message' => '#^Implicit array creation is not allowed \\- variable \\$users might not exist\\.$#', 'count' => 1,