Browse Source

Use static instead of self.

Refs #12696
Mark Story 7 years ago
parent
commit
d1d3f46560
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Validation/Validator.php

+ 2 - 2
src/Validation/Validator.php

@@ -183,7 +183,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
 
             $canBeEmpty = $this->_canBeEmpty($field, $context);
 
-            $flags = self::EMPTY_ALL;
+            $flags = static::EMPTY_ALL;
             if (isset($this->_allowEmptyFlags[$name])) {
                 $flags = $this->_allowEmptyFlags[$name];
             }
@@ -2319,7 +2319,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
      */
     protected function _fieldIsEmpty($data)
     {
-        return $this->isEmpty($data, self::EMPTY_ALL);
+        return $this->isEmpty($data, static::EMPTY_ALL);
     }
 
     /**