mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Fix #18899: Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
This commit is contained in:

committed by
GitHub

parent
f2caf02164
commit
e3028c524d
@ -386,7 +386,7 @@ EOD;
|
||||
|
||||
if (!$removeUnused) {
|
||||
foreach ($obsolete as $pk => $msg) {
|
||||
if (strpos($msg, '@@') === 0 && substr($msg, -2) === '@@') {
|
||||
if (strncmp($msg, '@@', 2) === 0 && substr($msg, -2) === '@@') {
|
||||
unset($obsolete[$pk]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user