diff --git a/tests/TypeComparatorTest.php b/tests/TypeComparatorTest.php index 96bb6f053..6a2d093f5 100644 --- a/tests/TypeComparatorTest.php +++ b/tests/TypeComparatorTest.php @@ -160,8 +160,8 @@ class TypeComparatorTest extends TestCase 'callable-string', ], 'callableUnionAcceptsCallableUnion' => [ - 'callable(int,string[]): void|callable(int): void', - 'callable(int): void|callable(int,string[]): void', + '(callable(int,string[]): void)|(callable(int): void)', + '(callable(int): void)|(callable(int,string[]): void)', ], ]; }