Skip to content

Commit 363729b

Browse files
committed
Update test use to T_COLON instead of T_INLINE_ELSE - related to commit 3 (332c959)
1 parent 9d88066 commit 363729b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if ($error === ERROR_ONE): ?>
9191
if ($value):
9292
if ($anotherValue):
9393
foreach ($array as $element):
94-
echo !is_null($element) ? $element : 'default';
94+
echo (function($element): string { return $element; } )($element);
9595
endforeach;
9696
endif;
9797
else:

src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.1.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if ($error === ERROR_ONE): ?>
103103
if ($value):
104104
if ($anotherValue):
105105
foreach ($array as $element):
106-
echo !is_null($element) ? $element : 'default';
106+
echo (function($element): string { return $element; } )($element);
107107
endforeach;
108108
endif;
109109
else:

0 commit comments

Comments
 (0)