diff --git a/phpBB/phpbb/request/deactivated_super_global.php b/phpBB/phpbb/request/deactivated_super_global.php index 509a3c355e..4160c3696b 100644 --- a/phpBB/phpbb/request/deactivated_super_global.php +++ b/phpBB/phpbb/request/deactivated_super_global.php @@ -101,9 +101,8 @@ class deactivated_super_global implements \ArrayAccess, \Countable, \IteratorAgg /** * Part of the \Countable implementation, will always result in a FATAL error * @return void - * @psalm-suppress InvalidReturnType */ - public function count(): int + #[\ReturnTypeWillChange] public function count(): void { $this->error(); } @@ -111,7 +110,6 @@ class deactivated_super_global implements \ArrayAccess, \Countable, \IteratorAgg /** * Part of the Traversable/IteratorAggregate implementation, will always result in a FATAL error * @return void - * @psalm-suppress InvalidReturnType */ #[\ReturnTypeWillChange] public function getIterator(): void {