2048) { return $v; } if (!\preg_match('/[\\/\\'.DIRECTORY_SEPARATOR.']/', $var)) { return $v; } if (\preg_match('/[?<>"*|]/', $var)) { return $v; } try { if (!@\file_exists($var)) { return $v; } } catch (TypeError $e) {// @codeCoverageIgnore // Only possible in PHP 7 return $v; // @codeCoverageIgnore } if (\in_array($var, self::$blacklist, true)) { return $v; } $v->addRepresentation(new SplFileInfoRepresentation(new SplFileInfo($var)), 0); return $v; } }