Skip to content

Commit 92ff74e

Browse files
authored
refactor: fix nullCoalesce.variable errors (#9524)
1 parent e7bce5f commit 92ff74e

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

Diff for: system/HTTP/RedirectResponse.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public function withInput()
9393
{
9494
$session = service('session');
9595
$session->setFlashdata('_ci_old_input', [
96-
'get' => $_GET ?? [],
97-
'post' => $_POST ?? [],
96+
'get' => $_GET ?? [], // @phpstan-ignore nullCoalesce.variable
97+
'post' => $_POST ?? [], // @phpstan-ignore nullCoalesce.variable
9898
]);
9999

100100
$this->withErrors();

Diff for: utils/phpstan-baseline/loader.neon

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 3541 errors
1+
# total 3539 errors
22
includes:
33
- argument.type.neon
44
- assign.propertyType.neon
@@ -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

Diff for: utils/phpstan-baseline/nullCoalesce.variable.neon

-13
This file was deleted.

0 commit comments

Comments
 (0)