From fce6e4d9fe4ff8afc6c88e9672071c7d03d9edd0 Mon Sep 17 00:00:00 2001 From: Oleg Zhulnev Date: Tue, 12 Oct 2021 11:45:01 +0300 Subject: [PATCH] import ReturnTypeWillChange to use section --- src/FileSystem/Finder/Iterator/RealPathFilterIterator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php b/src/FileSystem/Finder/Iterator/RealPathFilterIterator.php index ce6e550e1f..c1e40ab417 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();