Skip to content

Commit

Permalink
Update test use to T_COLON instead of T_INLINE_ELSE - related to comm…
Browse files Browse the repository at this point in the history
…it 3 (332c959)
  • Loading branch information
rodrigoprimo committed Dec 20, 2024
1 parent 9d88066 commit 363729b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if ($error === ERROR_ONE): ?>
if ($value):
if ($anotherValue):
foreach ($array as $element):
echo !is_null($element) ? $element : 'default';
echo (function($element): string { return $element; } )($element);
endforeach;
endif;
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if ($error === ERROR_ONE): ?>
if ($value):
if ($anotherValue):
foreach ($array as $element):
echo !is_null($element) ? $element : 'default';
echo (function($element): string { return $element; } )($element);
endforeach;
endif;
else:
Expand Down

0 comments on commit 363729b

Please sign in to comment.