Skip to content

Commit fb8ff49

Browse files
committed
Simplify typehint
1 parent e57dc8d commit fb8ff49

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Dictionary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ public function prepend(string $key, InnerList|Item|ByteSequence|Token|bool|int|
292292
/**
293293
* Merges multiple instances using iterable associative structures.
294294
*
295-
* @param Dictionary|iterable<string, InnerList|Item|ByteSequence|Token|bool|int|float|string> ...$others
295+
* @param iterable<string, InnerList|Item|ByteSequence|Token|bool|int|float|string> ...$others
296296
*/
297-
public function mergeAssociative(Dictionary|iterable ...$others): self
297+
public function mergeAssociative(iterable ...$others): self
298298
{
299299
foreach ($others as $other) {
300300
$this->members = [...$this->members, ...self::fromAssociative($other)->members];

src/Parameters.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,9 @@ public function prepend(string $key, Item|ByteSequence|Token|bool|int|float|stri
371371
/**
372372
* Merges multiple instances using iterable associative structures.
373373
*
374-
* @param Parameters|iterable<array-key, Item|Token|ByteSequence|float|int|bool|string> ...$others
375-
* @throws ForbiddenStateError if the found item is in invalid state
374+
* @param iterable<array-key, Item|Token|ByteSequence|float|int|bool|string> ...$others
376375
*/
377-
public function mergeAssociative(Parameters|iterable ...$others): self
376+
public function mergeAssociative(iterable ...$others): self
378377
{
379378
foreach ($others as $other) {
380379
$this->members = [...$this->members, ...self::fromAssociative($other)->members];

0 commit comments

Comments
 (0)