Merge pull request #265 from carusogabriel/in_array
Use in_array instead of array_search + comparison
This commit is contained in:
Коммит
a266248840
|
@ -92,7 +92,7 @@ class QualifiedName extends Node implements NamespacedNameInterface {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (array_search($lowerText = strtolower($this->getText()), ["self", "static", "parent"]) !== false) {
|
||||
if (in_array($lowerText = strtolower($this->getText()), ["self", "static", "parent"])) {
|
||||
return $lowerText;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче