Skip to content

Commit 08527df

Browse files
committed
LambdaNotUsedImportFixer - add heredoc test
1 parent e95ca19 commit 08527df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Fixer/FunctionNotation/LambdaNotUsedImportFixerTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,19 @@ public function provideDoNotFixCases()
196196
'interpolation 3' => [
197197
'<?php $foo = function() use ($world) { echo "hello ${world}"; };',
198198
],
199+
'heredoc' => [
200+
'<?php
201+
$b = 123;
202+
$foo = function() use ($b) {
203+
echo
204+
<<<"TEST"
205+
Foo $b
206+
TEST;
207+
};
208+
209+
$foo();
210+
',
211+
],
199212
];
200213
}
201214
}

0 commit comments

Comments
 (0)