Skip to content

Commit

Permalink
Added string interpolation cases
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Aug 2, 2020
1 parent ae91c78 commit 3ae96bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Fixer/FunctionNotation/LambdaNotUsedImportFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ public function provideDoNotFixCases()
'$$c' => [
'<?php $foo = function($g) use ($b) { $h = $$g; };',
],
'interpolation 1' => [
'<?php $foo = function() use ($world) { echo "hello $world"; };',
],
'interpolation 2' => [
'<?php $foo = function() use ($world) { echo "hello {$world}"; };',
],
'interpolation 3' => [
'<?php $foo = function() use ($world) { echo "hello ${world}"; };',
],
];
}
}

0 comments on commit 3ae96bf

Please sign in to comment.