-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Skip echo-ed on StrictArrayParamDimFetchRector (#5260)
* [TypeDeclaration] Skip echo-ed on StrictArrayParamDimFetchRector * Fixed 🎉 * fix
- Loading branch information
1 parent
03c7ab7
commit 6a2af18
Showing
3 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...Declaration/Rector/ClassMethod/StrictArrayParamDimFetchRector/Fixture/skip_echoed.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\StrictArrayParamDimFetchRector\Fixture; | ||
|
||
final class SkipEchoed | ||
{ | ||
public function run($param) | ||
{ | ||
if (isset($param['bar'])) { | ||
echo $param['bar']; | ||
} | ||
|
||
echo $param; | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters