-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not apply heuristics of Collection<...>|Foo[] being resolved to Co…
…llection of Foo Closes phpstan/phpstan#6228
- Loading branch information
1 parent
fc66c24
commit fff8f09
Showing
4 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Bug6228; | ||
|
||
use function PHPStan\Testing\assertType; | ||
|
||
class Bar | ||
{ | ||
/** | ||
* @param \DOMNodeList<\DOMNode>|\DOMNode|\DOMNode[]|string|null $node | ||
*/ | ||
public function __construct($node) | ||
{ | ||
assertType('array<DOMNode>|DOMNode|DOMNodeList<DOMNode>|string|null', $node); | ||
} | ||
} |