diff --git a/system/HTTP/RedirectResponse.php b/system/HTTP/RedirectResponse.php index 206b1de07c67..5703d1d6a78d 100644 --- a/system/HTTP/RedirectResponse.php +++ b/system/HTTP/RedirectResponse.php @@ -93,8 +93,8 @@ public function withInput() { $session = service('session'); $session->setFlashdata('_ci_old_input', [ - 'get' => $_GET ?? [], - 'post' => $_POST ?? [], + 'get' => $_GET ?? [], // @phpstan-ignore nullCoalesce.variable + 'post' => $_POST ?? [], // @phpstan-ignore nullCoalesce.variable ]); $this->withErrors(); diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index 659f4a2858d1..7ffb4839cc44 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -1,4 +1,4 @@ -# total 3541 errors +# total 3539 errors includes: - argument.type.neon - assign.propertyType.neon @@ -22,7 +22,6 @@ includes: - missingType.return.neon - notIdentical.alwaysTrue.neon - nullCoalesce.property.neon - - nullCoalesce.variable.neon - offsetAccess.notFound.neon - property.defaultValue.neon - property.nonObject.neon diff --git a/utils/phpstan-baseline/nullCoalesce.variable.neon b/utils/phpstan-baseline/nullCoalesce.variable.neon deleted file mode 100644 index 3b81cc83a8f1..000000000000 --- a/utils/phpstan-baseline/nullCoalesce.variable.neon +++ /dev/null @@ -1,13 +0,0 @@ -# total 2 errors - -parameters: - ignoreErrors: - - - message: '#^Variable \$_GET on left side of \?\? always exists and is not nullable\.$#' - count: 1 - path: ../../system/HTTP/RedirectResponse.php - - - - message: '#^Variable \$_POST on left side of \?\? always exists and is not nullable\.$#' - count: 1 - path: ../../system/HTTP/RedirectResponse.php