Skip to content

Commit 92ab64d

Browse files
committed
chore: suppress PHPStan warning for and
1 parent 0cee5b9 commit 92ab64d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

system/HTTP/RedirectResponse.php

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

100102
$this->withErrors();

0 commit comments

Comments
 (0)