Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeQuality] Skip surplus open square bracket on SimplifyRegexPatter…
…nRector (#5494) * [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector * [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector
- Loading branch information
1 parent
bcce8e3
commit dd02659
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ctor/FuncCall/SimplifyRegexPatternRector/Fixture/skip_surplus_open_square_bracket.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 | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector\Fixture; | ||
|
||
class SkipSurplusOpenSquareBracket | ||
{ | ||
public function run() | ||
{ | ||
$purln = preg_replace("/[^[a-zA-Z0-9_]/", "", "test"); | ||
} | ||
} |
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