Skip to content

Commit ee0580f

Browse files
committed
Fix nullCoalesce.variable errors.
rm nullCoalesce.variable.neon Update error count Restore missing nullCoalesce.variable.neon file Update loader.neon and remove obsolete nullCoalesce.variable.neon Use type checking instead of null coalescing Prevent superglobals from being changed by users chore: suppress PHPStan warning for and
1 parent e7bce5f commit ee0580f

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

system/HTTP/RedirectResponse.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,15 @@ public function back(?int $code = null, string $method = 'auto')
9292
public function withInput()
9393
{
9494
$session = service('session');
95+
96+
// @phpstan-ignore-next-line
97+
$get = $_GET ?? [];
98+
// @phpstan-ignore-next-line
99+
$post = $_POST ?? [];
100+
95101
$session->setFlashdata('_ci_old_input', [
96-
'get' => $_GET ?? [],
97-
'post' => $_POST ?? [],
102+
'get' => $get,
103+
'post' => $post,
98104
]);
99105

100106
$this->withErrors();

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ includes:
2222
- missingType.return.neon
2323
- notIdentical.alwaysTrue.neon
2424
- nullCoalesce.property.neon
25-
- nullCoalesce.variable.neon
2625
- offsetAccess.notFound.neon
2726
- property.defaultValue.neon
2827
- property.nonObject.neon

utils/phpstan-baseline/nullCoalesce.variable.neon

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)