Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 31, 2022
1 parent fe26263 commit edc1e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/data/bug-4592.php
Expand Up @@ -9,12 +9,12 @@ class HelloWorld
/**
* @var array<string, array{name: string, email: string}>
*/
private array $contacts1 = [];
private $contacts1 = [];

/**
* @var array{names: array<string, string>, emails: array<string, string>}
*/
private array $contacts2 = ['names' => [], 'emails' => []];
private $contacts2 = ['names' => [], 'emails' => []];

public function sayHello1(string $id): void
{
Expand Down
Expand Up @@ -3,5 +3,5 @@
use function PHPStan\Testing\assertType;

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

0 comments on commit edc1e71

Please sign in to comment.