Skip to content

Commit cbe4096

Browse files
committed
Added missing #[Override] attributes
1 parent c08c604 commit cbe4096

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/Integration/Resource/ResourceCollectionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
use InvalidArgumentException;
3535
use IteratorAggregate;
3636
use LogicException;
37+
use Override;
3738
use PHPUnit\Framework\Attributes\DataProvider;
3839
use PHPUnit\Framework\Attributes\TestDox;
3940
use Psr\Log\LoggerInterface;
@@ -267,6 +268,7 @@ public function __construct(array $input)
267268
/**
268269
* @phpstan-return ArrayObject<int, mixed>
269270
*/
271+
#[Override]
270272
public function getIterator(): ArrayObject
271273
{
272274
return $this->iterator;
@@ -284,6 +286,7 @@ private function getIteratorAggregateThatThrowsAnException(): IteratorAggregate
284286
/**
285287
* @phpstan-return ArrayObject<int, mixed>
286288
*/
289+
#[Override]
287290
public function getIterator(): ArrayObject
288291
{
289292
throw new LogicException('Exception with getIterator');

tests/Integration/Rest/ControllerCollectionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Generator;
2222
use InvalidArgumentException;
2323
use IteratorAggregate;
24+
use Override;
2425
use PHPUnit\Framework\Attributes\DataProvider;
2526
use PHPUnit\Framework\Attributes\TestDox;
2627
use Psr\Log\LoggerInterface;
@@ -64,6 +65,7 @@ public function __construct(array $input)
6465
/**
6566
* @phpstan-return ArrayObject<int, mixed>
6667
*/
68+
#[Override]
6769
public function getIterator(): ArrayObject
6870
{
6971
return $this->iterator;

0 commit comments

Comments
 (0)