-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php70] More delimiter case in the middle fix on EregToPregMatchRector (
#6357) * [Php70] More delimiter case in the middle fix on EregToPregMatchRector * [Php70] More delimiter case in the middle fix on EregToPregMatchRector
- Loading branch information
1 parent
3d76a1a
commit cff2ed2
Showing
2 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...hp70/Rector/FuncCall/EregToPregMatchRector/Fixture/with_delimiter_char_in_middle2.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,21 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php70\Rector\FuncCall\EregToPregMatchRector\Fixture; | ||
|
||
function withDelimiterInMiddle2($text) | ||
{ | ||
return (bool) ereg('A# (minor|major)', $text); | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php70\Rector\FuncCall\EregToPregMatchRector\Fixture; | ||
|
||
function withDelimiterInMiddle2($text) | ||
{ | ||
return (bool) preg_match('#A\# (minor|major)#m', $text); | ||
} | ||
|
||
?> |
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