mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
add mbereg → mb_ereg function renames
This commit is contained in:
parent
5de35b9706
commit
a9cb8ece58
@ -4,3 +4,18 @@ services:
|
|||||||
Rector\Php\Rector\FuncCall\SensitiveDefineRector: ~
|
Rector\Php\Rector\FuncCall\SensitiveDefineRector: ~
|
||||||
Rector\Php\Rector\ConstFetch\SensitiveConstantNameRector: ~
|
Rector\Php\Rector\ConstFetch\SensitiveConstantNameRector: ~
|
||||||
Rector\Php\Rector\String\SensitiveHereNowDocRector: ~
|
Rector\Php\Rector\String\SensitiveHereNowDocRector: ~
|
||||||
|
|
||||||
|
Rector\Rector\Function_\FunctionReplaceRector:
|
||||||
|
mbregex_encoding: 'mb_regex_encoding'
|
||||||
|
mbereg: 'mb_ereg'
|
||||||
|
mbereg_replace: 'mb_ereg_replace'
|
||||||
|
mberegi_replace: 'mb_eregi_replace'
|
||||||
|
mbsplit: 'mb_split'
|
||||||
|
mbereg_match: 'mb_ereg_match'
|
||||||
|
mbereg_search: 'mb_ereg_search'
|
||||||
|
mbereg_search_pos: 'mb_ereg_search_pos'
|
||||||
|
mbereg_search_regs: 'mb_ereg_search_regs'
|
||||||
|
mbereg_search_init: 'mb_ereg_search_init'
|
||||||
|
mbereg_search_getregs: 'mb_ereg_search_getregs'
|
||||||
|
mbereg_search_getpos: 'mb_ereg_search_getpos'
|
||||||
|
mbereg_search_setpos: 'mb_ereg_search_setpos'
|
||||||
|
@ -55,6 +55,7 @@ CODE_SAMPLE
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the doc label is not in the string → ok
|
// the doc label is not in the string → ok
|
||||||
|
/** @var string $docLabel */
|
||||||
$docLabel = $node->getAttribute('docLabel');
|
$docLabel = $node->getAttribute('docLabel');
|
||||||
|
|
||||||
if (! Strings::contains($node->value, $docLabel)) {
|
if (! Strings::contains($node->value, $docLabel)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user