File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
/**
10
10
* @template T of object
11
- * @extends \IteratorAggregate<T>
11
+ * @implements \IteratorAggregate<T>
12
+ * @implements \ArrayAccess<mixed, T>
12
13
*/
13
14
class Collection implements \ArrayAccess, \Countable, \IteratorAggregate
14
15
{
15
16
/**
16
17
* @param T[] $items
17
18
* @param class-string<T>|null $itemType
18
- *
19
- * @throws Assert\AssertionFailedException
20
19
*/
21
20
final public function __construct (
22
21
private readonly array $ items = [],
@@ -31,10 +30,8 @@ final public function __construct(
31
30
* Add one or more items to the collection. It **does not** modify the
32
31
* current collection, but returns a new one.
33
32
*
34
- * @param mixed $item One or more items to add to the collection.
33
+ * @param mixed $item One or more items to add to the collection.
35
34
* @return static
36
- *
37
- * @throws Assert\AssertionFailedException
38
35
*/
39
36
public function add (mixed $ item ): static
40
37
{
Original file line number Diff line number Diff line change 13
13
14
14
/**
15
15
* @template T of object
16
- * @extends PaginatorInterface<T>
16
+ * @implements PaginatorInterface<T>
17
+ * @implements ArrayAccess<mixed, T>
17
18
*/
18
19
class Paginator implements PaginatorInterface, ArrayAccess
19
20
{
You can’t perform that action at this time.
0 commit comments