Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
enumag committed Sep 4, 2020
commit 6f2f8aaf1aff4f8e91e5702087dd56f91e0c0a71
4 changes: 2 additions & 2 deletions tests/PHPStan/Analyser/NodeScopeResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3189,7 +3189,7 @@ public function dataBinaryOperations(): array
'$coalesceArray',
],
[
'array<int, 1|2|3>',
'array<int, 1|2|3>&nonEmpty',
'$arrayToBeUnset',
],
[
Expand Down Expand Up @@ -9070,7 +9070,7 @@ public function dataIsset(): array
'$anotherArrayCopy',
],
[
'array<string, 1|2|3|4|null>',
'array<string, 1|2|3|4|null>&nonEmpty',
'$yetAnotherArrayCopy',
],
[
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/data/generics.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function testD($int, $float, $intFloat)
assertType('DateTime|int', d($int, new \DateTime()));
assertType('DateTime|float|int', d($intFloat, new \DateTime()));
assertType('array()|DateTime', d([], new \DateTime()));
assertType('array<string, \'barrrr\'>|DateTime', d(['blabla' => 'barrrr'], new \DateTime()));
assertType('(array<string, \'barrrr\'>&nonEmpty)|DateTime', d(['blabla' => 'barrrr'], new \DateTime()));
}

/**
Expand Down