diff --git a/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php b/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php index ecadd0e51..4047e1711 100644 --- a/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php +++ b/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php @@ -77,7 +77,7 @@ public function accept() * * @return string regexp corresponding to a given string or regexp */ - protected function toRegex(string $str): string + protected function toRegex($str): string { return $this->isRegex($str) ? $str : '/' . preg_quote($str, '/') . '/'; }