Skip to content

Commit 219ee1c

Browse files
committed
wip
1 parent e9cf0fb commit 219ee1c

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

tests/ReflectionClosure1Test.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,19 @@
275275
});
276276

277277
test('interpolation1', function () {
278-
$f1 = function () {
279-
return "${foo}${bar}{$foobar}";
280-
};
281-
$e1 = 'function () {
282-
return "${foo}${bar}{$foobar}";
283-
}';
278+
if (PHP_VERSION_ID >= 80200) {
279+
$f1 = function () {
280+
return "{$foo}{$bar}{$foobar}";
281+
};
282+
$e1 = 'function () {
283+
return "{$foo}{$bar}{$foobar}";
284+
}';
285+
} else {
286+
$f1 = function () {
287+
return "${foo}${bar}{$foobar}";
288+
};
289+
$e1 = 'function () {
290+
return "${foo}${bar}{$foobar}";
291+
}';
292+
}
284293
});

0 commit comments

Comments
 (0)