Skip to content

Commit 2d27b1d

Browse files
committed
Added fixes for phpstan tests
1 parent 0ef9e3c commit 2d27b1d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

phpstan.neon

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
parameters:
2+
reportUnmatchedIgnoredErrors: false
23
level: 5
34
paths:
45
- src
5-
ignoreErrors:
6-
- message: '#Access to an undefined property.*?\$expr#'
7-
path: src/ArrayFile.php

src/ArrayFile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public function set($key, $value = null)
155155
if ($target->value->name->parts[0] !== 'env' || !isset($target->value->args[0])) {
156156
return $this;
157157
}
158+
/* @phpstan-ignore-next-line */
158159
if (isset($target->value->args[0]) && !isset($target->value->args[1])) {
159160
$target->value->args[1] = new Arg($this->makeAstNode($valueType, $value));
160161
}

src/DataFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class DataFile implements DataFileInterface
99
/**
1010
* Abstract syntax tree
1111
*
12-
* @var \PhpParser\Node\Stmt[]|array<int, array>
12+
* @var mixed
1313
*/
1414
protected $ast = [];
1515

0 commit comments

Comments
 (0)