diff --git a/src/Filters/ExactMatch.php b/src/Filters/ExactMatch.php index 13af8ff22b..4cbdeb1f35 100644 --- a/src/Filters/ExactMatch.php +++ b/src/Filters/ExactMatch.php @@ -12,6 +12,7 @@ namespace PHP_CodeSniffer\Filters; use PHP_CodeSniffer\Util; +use ReturnTypeWillChange; abstract class ExactMatch extends Filter { @@ -40,6 +41,7 @@ abstract class ExactMatch extends Filter * * @return bool */ + #[ReturnTypeWillChange] public function accept() { if (parent::accept() === false) { @@ -79,6 +81,7 @@ public function accept() * * @return \RecursiveIterator */ + #[ReturnTypeWillChange] public function getChildren() { $children = parent::getChildren();