-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodingStyle] Fixes #5987 Escape content delimiter in pattern for Con…
…sistentPregDelimiterRector
- Loading branch information
1 parent
d266e69
commit 3133d45
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
...uncCall/ConsistentPregDelimiterRector/Fixture/escape_content_delimiter_in_pattern.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,27 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector\Fixture; | ||
|
||
class EscapeContentDelimiterInPattern | ||
{ | ||
public function run($value) | ||
{ | ||
preg_match('/^#(([a-f0-9]{3}){1,2})$/i', '#ffffff'); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector\Fixture; | ||
|
||
class EscapeContentDelimiterInPattern | ||
{ | ||
public function run($value) | ||
{ | ||
preg_match('#^\#(([a-f0-9]{3}){1,2})$#i', '#ffffff'); | ||
} | ||
} | ||
|
||
?> |
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