Skip to content

Commit 4f54c4e

Browse files
committed
Add "mixed" types
1 parent be8586d commit 4f54c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function has(int|string $key): bool
265265
*
266266
* @throws AnimationException|VipsException
267267
*/
268-
public function push($item): CollectionInterface
268+
public function push(mixed $item): CollectionInterface
269269
{
270270
return $this->add($item);
271271
}
@@ -275,7 +275,7 @@ public function push($item): CollectionInterface
275275
*
276276
* @see CollectionInterface::get()
277277
*/
278-
public function get(int|string $key, $default = null): mixed
278+
public function get(int|string $key, mixed $default = null): mixed
279279
{
280280
try {
281281
return $this->frame($key);
@@ -291,7 +291,7 @@ public function get(int|string $key, $default = null): mixed
291291
*
292292
* @throws Exception
293293
*/
294-
public function getAtPosition(int $key = 0, $default = null): mixed
294+
public function getAtPosition(int $key = 0, mixed $default = null): mixed
295295
{
296296
return $this->get($key, $default);
297297
}

0 commit comments

Comments
 (0)