diff --git a/src/Files/FileList.php b/src/Files/FileList.php index 66833a3ee4..354c5bbc32 100644 --- a/src/Files/FileList.php +++ b/src/Files/FileList.php @@ -170,7 +170,7 @@ private function getFilterClass() * * @return void */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function rewind() { reset($this->files); @@ -183,7 +183,7 @@ public function rewind() * * @return \PHP_CodeSniffer\Files\File */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function current() { $path = key($this->files); @@ -201,7 +201,7 @@ public function current() * * @return void */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function key() { return key($this->files); @@ -214,7 +214,7 @@ public function key() * * @return void */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function next() { next($this->files); @@ -227,7 +227,7 @@ public function next() * * @return boolean */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function valid() { if (current($this->files) === false) { @@ -244,7 +244,7 @@ public function valid() * * @return integer */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function count() { return $this->numFiles; diff --git a/src/Filters/Filter.php b/src/Filters/Filter.php index a1246a2c52..bbbabfe64d 100644 --- a/src/Filters/Filter.php +++ b/src/Filters/Filter.php @@ -90,7 +90,7 @@ public function __construct($iterator, $basedir, Config $config, Ruleset $rulese * * @return bool */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function accept() { $filePath = $this->current(); @@ -132,7 +132,7 @@ public function accept() * * @return \RecursiveIterator */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function getChildren() { $filterClass = get_called_class(); diff --git a/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc b/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc index 5c3295fd60..9f8c79e858 100644 --- a/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc +++ b/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc @@ -436,7 +436,7 @@ class Something implements JsonSerializable { * * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function jsonSerialize() {} /** @@ -454,7 +454,7 @@ class Something implements JsonSerializable { * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function blankLineDetectionA() {} /** @@ -462,7 +462,7 @@ class Something implements JsonSerializable { * * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function blankLineDetectionB() {} @@ -472,7 +472,7 @@ class Something implements JsonSerializable { * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function blankLineDetectionC() {} } diff --git a/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed b/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed index 751b09c665..200cc23673 100644 --- a/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed +++ b/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.inc.fixed @@ -436,7 +436,7 @@ class Something implements JsonSerializable { * * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function jsonSerialize() {} /** @@ -454,7 +454,7 @@ class Something implements JsonSerializable { * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function blankLineDetectionA() {} /** @@ -462,7 +462,7 @@ class Something implements JsonSerializable { * * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function blankLineDetectionB() {} @@ -472,7 +472,7 @@ class Something implements JsonSerializable { * @return mixed */ - #[ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function blankLineDetectionC() {} }