diff --git a/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php b/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php index ce6e550e1..c1e40ab41 100644 --- a/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php +++ b/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php @@ -37,6 +37,7 @@ use const DIRECTORY_SEPARATOR; use function preg_quote; +use ReturnTypeWillChange; use function str_replace; use Symfony\Component\Finder\Iterator\MultiplePcreFilterIterator; @@ -50,7 +51,7 @@ final class RealPathFilterIterator extends MultiplePcreFilterIterator * * @return bool true if the value should be kept, false otherwise */ - #[\ReturnTypeWillChange] + #[ReturnTypeWillChange] public function accept() { $filename = $this->current()->getRealPath();