From 6e15dad0e446a3aa4579f6ed5cb07575bbe1ecea Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 5 Nov 2023 18:46:13 +0800 Subject: [PATCH] Update to phpstan-codeigniter v1.4.2 --- phpstan-baseline.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index ce98e8633277..ba2ed9354d05 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -701,21 +701,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Commands/Server/Serve.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Accessing offset \'DOCUMENT_ROOT\' directly on \\$_SERVER is discouraged\\.$#', - 'count' => 2, - 'path' => __DIR__ . '/system/Commands/Server/rewrite.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Accessing offset \'REQUEST_URI\' directly on \\$_SERVER is discouraged\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Server/rewrite.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Assigning \'/index\\.php\' directly on offset \'SCRIPT_NAME\' of \\$_SERVER is discouraged\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Commands/Server/rewrite.php', -]; $ignoreErrors[] = [ 'message' => '#^Accessing offset \'CI_ENVIRONMENT\' directly on \\$_SERVER is discouraged\\.$#', 'count' => 3, @@ -3916,21 +3901,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Test/TestResponse.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Accessing offset \'app\\.baseURL\' directly on \\$_SERVER is discouraged\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Test/bootstrap.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Assigning \'http\\://example\\.com/\' directly on offset \'app\\.baseURL\' of \\$_SERVER is discouraged\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Test/bootstrap.php', -]; -$ignoreErrors[] = [ - 'message' => '#^Assigning \'testing\' directly on offset \'CI_ENVIRONMENT\' of \\$_SERVER is discouraged\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Test/bootstrap.php', -]; $ignoreErrors[] = [ 'message' => '#^Property CodeIgniter\\\\Throttle\\\\Throttler\\:\\:\\$testTime \\(int\\) on left side of \\?\\? is not nullable\\.$#', 'count' => 1,