Skip to content

Commit

Permalink
CallbackTypeTest: fixed test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Mar 26, 2024
1 parent ed9ecc9 commit a5da330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CallbackTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function paramContravarianceProvider() : \Generator{
yield [function(int $a) : void{}, function(mixed $a) : void{}, true, "mixed is contravariant with int"];
yield [function(int|string $a) : void{}, function(mixed $a) : void{}, true, "mixed is contravariant with int|string"];
yield [function(Interface1&Interface2 $a) : void{}, function(mixed $a) : void{}, true, "mixed is contravariant with intersection"];
yield [function((Interface1&Interface2)|string $a) : void{}, function(mixed $a) : void{}, false, "mixed is contravariant with DNF type"];
yield [function((Interface1&Interface2)|string $a) : void{}, function(mixed $a) : void{}, true, "mixed is contravariant with DNF type"];

yield [function(mixed $a) : void{}, function($a) : void{}, true, "unspecified parameter type is equivalent to mixed"];

Expand Down

0 comments on commit a5da330

Please sign in to comment.