Fix incorrect use of curly braces in legacy classes

This commit is contained in:
Kijin Sung 2020-05-19 20:52:44 +09:00
parent 2cbfd4500c
commit 14ad62e869
4 changed files with 39 additions and 39 deletions

View file

@ -279,7 +279,7 @@ class Validator
foreach($this->_filters as $key => $filter)
{
$names = array();
if($key{0} == '^')
if($key[0] == '^')
{
$names = preg_grep('/^' . preg_quote(substr($key, 1)) . '/', $field_names);
}