Skip to content

Commit e5e3c75

Browse files
committed
types on overriden methods fixed
1 parent 2f1b869 commit e5e3c75

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Linna/TypedArrayObject/AbstractArray.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public function __construct(Closure $func, array $input = [], int $flags = 0, st
6060
* @ignore
6161
*
6262
* @param mixed $index
63-
* @param string $newval
63+
* @param mixed $newval
6464
*
6565
* @throws InvalidArgumentException If value passed with $newval are not of the string type
6666
*
6767
* @return void
6868
*/
69-
public function offsetSet($index, $newval): void
69+
public function offsetSet(mixed $index, mixed $newval): void
7070
{
7171
if (!($this->func)($newval)) {
7272
throw new InvalidArgumentException($this->exceptionMessage);
@@ -79,11 +79,12 @@ public function offsetSet($index, $newval): void
7979
* Append a value at the end of the array.
8080
*
8181
* @param mixed $value
82-
* @return void
8382
*
8483
* @throws InvalidArgumentException If value passed with $value are not of the string type
84+
*
85+
* @return void
8586
*/
86-
public function append($value): void
87+
public function append(mixed $value): void
8788
{
8889
if (!($this->func)($value)) {
8990
throw new InvalidArgumentException($this->exceptionMessage);

0 commit comments

Comments
 (0)