-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php55] Handle crash after exit() on GetCalledClassToSelfClassRector (#…
…5372) * [Php55] Handle crash after exit() on GetCalledClassToSelfClassRector * fixed 🎉 * add test after die
- Loading branch information
1 parent
affdec9
commit 02a30d4
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ests/Php55/Rector/FuncCall/GetCalledClassToSelfClassRector/Fixture/skip_after_die.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,11 @@ | ||
<?php | ||
|
||
die('blocked'); | ||
|
||
function my_function () { | ||
// It seems like this call below can be any function, | ||
// so long as it returns something | ||
return implode(',', []); | ||
} | ||
|
||
echo my_function(); |
11 changes: 11 additions & 0 deletions
11
...sts/Php55/Rector/FuncCall/GetCalledClassToSelfClassRector/Fixture/skip_after_exit.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,11 @@ | ||
<?php | ||
|
||
exit('blocked'); | ||
|
||
function my_function () { | ||
// It seems like this call below can be any function, | ||
// so long as it returns something | ||
return implode(',', []); | ||
} | ||
|
||
echo my_function(); |
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