Skip to content
Snippets Groups Projects
Commit 297cf562 authored by Jan Kuchař's avatar Jan Kuchař
Browse files

tests: when no return-type expectation

parent e3f67960
Branches
Tags
No related merge requests found
...@@ -11,6 +11,7 @@ $fn = function(?T1 $t1, ?T2 $t2): ?T3 {return new T3;}; ...@@ -11,6 +11,7 @@ $fn = function(?T1 $t1, ?T2 $t2): ?T3 {return new T3;};
// Correct signature assertion // Correct signature assertion
assertSignature($fn, params(nullable(T1::class), nullable(T2::class)), nullable(T3::class)); assertSignature($fn, params(nullable(T1::class), nullable(T2::class)), nullable(T3::class));
assertSignature($fn, params(nullable(T1::class), nullable(T2::class)), NULL); // no expectation about return type
// parameter is nullable, non-nullable is expected // parameter is nullable, non-nullable is expected
Assert::exception( Assert::exception(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment