mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/17176] Use ReturnTypeWillChange instead of suppressing psalm
PHPBB3-17176
This commit is contained in:
@@ -101,9 +101,8 @@ class deactivated_super_global implements \ArrayAccess, \Countable, \IteratorAgg
|
|||||||
/**
|
/**
|
||||||
* Part of the \Countable implementation, will always result in a FATAL error
|
* Part of the \Countable implementation, will always result in a FATAL error
|
||||||
* @return void
|
* @return void
|
||||||
* @psalm-suppress InvalidReturnType
|
|
||||||
*/
|
*/
|
||||||
public function count(): int
|
#[\ReturnTypeWillChange] public function count(): void
|
||||||
{
|
{
|
||||||
$this->error();
|
$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
|
* Part of the Traversable/IteratorAggregate implementation, will always result in a FATAL error
|
||||||
* @return void
|
* @return void
|
||||||
* @psalm-suppress InvalidReturnType
|
|
||||||
*/
|
*/
|
||||||
#[\ReturnTypeWillChange] public function getIterator(): void
|
#[\ReturnTypeWillChange] public function getIterator(): void
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user