Skip to content

Commit 0a1b591

Browse files
committed
initialize to empty array
1 parent 7569745 commit 0a1b591

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Resolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Resolver
3939
/**
4040
* @var InvalidMap[]
4141
*/
42-
private $errors;
42+
private $errors = [];
4343

4444
public function __construct(bool $ignoreErrors = false)
4545
{

tests/Unit/ResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testIgnoresUnknownKey(): void
4545
'one' => 1,
4646
'two' => 2
4747
]);
48-
self::assertCount(1, $resolver->errors());
48+
self::assertCount(1, $resolver->errors()->errors());
4949
}
5050

5151
public function testMergesDefaults(): void

0 commit comments

Comments
 (0)