diff --git a/tests/ReflectionClosure2Test.php b/tests/ReflectionClosure2Test.php index 100e4cd3..3154ff1c 100644 --- a/tests/ReflectionClosure2Test.php +++ b/tests/ReflectionClosure2Test.php @@ -149,7 +149,8 @@ test('anonymous inside closure', function () { $f1 = function () { - return new class() extends A { + return new class() extends A + { }; }; $e1 = 'function () { @@ -159,7 +160,8 @@ }'; $f2 = function () { - return new class() extends A implements B { + return new class() extends A implements B + { }; }; $e2 = 'function () { @@ -277,7 +279,8 @@ public function x(\A $a): \B function a(Qux $q): Bar { f1(); - $a = new class() extends Bar { + $a = new class() extends Bar + { }; } };