We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cf0fb commit 219ee1cCopy full SHA for 219ee1c
tests/ReflectionClosure1Test.php
@@ -275,10 +275,19 @@
275
});
276
277
test('interpolation1', function () {
278
- $f1 = function () {
279
- return "${foo}${bar}{$foobar}";
280
- };
281
- $e1 = 'function () {
282
283
- }';
+ if (PHP_VERSION_ID >= 80200) {
+ $f1 = function () {
+ return "{$foo}{$bar}{$foobar}";
+ };
+ $e1 = 'function () {
284
+ }';
285
+ } else {
286
287
+ return "${foo}${bar}{$foobar}";
288
289
290
291
292
+ }
293
0 commit comments