-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NodeNameResolver] Check regex start delimiter and contains * on Node…
…NameResolver to use fnmatch() (#4964) * [NodeNameResolver] Check starts or ends with * on NodeNameResolver to use fnmatch() * [NodeNameResolver] Add fixture * clean up * Add back regex support * example use regex
- Loading branch information
1 parent
0717306
commit ef6c8bc
Showing
5 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
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
11 changes: 11 additions & 0 deletions
11
...hp55/Rector/String_/StringClassNameToClassConstantRector/Fixture/skip_nette_class.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\Php55\Rector\String_\StringClassNameToClassConstantRector\Fixture; | ||
|
||
final class SkipNetteClass | ||
{ | ||
public function run() | ||
{ | ||
return 'Nette\Utils\FileSystem'; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...55/Rector/String_/StringClassNameToClassConstantRector/Fixture/skip_phpstan_class.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\Php55\Rector\String_\StringClassNameToClassConstantRector\Fixture; | ||
|
||
final class SkipPHPStanClass | ||
{ | ||
public function run() | ||
{ | ||
return 'Nette\Utils\FileSystem'; | ||
} | ||
} |
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