Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Apr 7, 2023
1 parent 1303f7d commit 6524ae8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/ReflectionClosure2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@

test('anonymous inside closure', function () {
$f1 = function () {
return new class() extends A {
return new class() extends A
{
};
};
$e1 = 'function () {
Expand All @@ -159,7 +160,8 @@
}';

$f2 = function () {
return new class() extends A implements B {
return new class() extends A implements B
{
};
};
$e2 = 'function () {
Expand Down Expand Up @@ -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
{
};
}
};
Expand Down

0 comments on commit 6524ae8

Please sign in to comment.