protected function validateValue($value) { $result = $this->validateSubnet($value); if (is_array($result)) { $result[1] = array_merge(['ip' => is_array($value) ? 'array()' : $value], $result[1]); return $result; } else { return null; } }