Skip to content

Commit edc1e71

Browse files
committed
Fix tests
1 parent fe26263 commit edc1e71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/PHPStan/Analyser/data/bug-4592.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class HelloWorld
99
/**
1010
* @var array<string, array{name: string, email: string}>
1111
*/
12-
private array $contacts1 = [];
12+
private $contacts1 = [];
1313

1414
/**
1515
* @var array{names: array<string, string>, emails: array<string, string>}
1616
*/
17-
private array $contacts2 = ['names' => [], 'emails' => []];
17+
private $contacts2 = ['names' => [], 'emails' => []];
1818

1919
public function sayHello1(string $id): void
2020
{

tests/PHPStan/Analyser/data/isset-coalesce-empty-type-pre-81.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
use function PHPStan\Testing\assertType;
44

55
function baz(\ReflectionClass $ref): void {
6-
assertType('string', $ref->name ?? false);
6+
assertType('class-string<object>', $ref->name ?? false);
77
}

0 commit comments

Comments
 (0)