Skip to content

Commit 62b689a

Browse files
committed
setup mixed keyword in offset methods
1 parent 3e3ba94 commit 62b689a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Types/AbstractCypherObject.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getIterator(): Traversable
6464
/**
6565
* @param TKey $offset
6666
*/
67-
public function offsetExists($offset): bool
67+
public function offsetExists(mixed $offset): bool
6868
{
6969
return array_key_exists($offset, $this->toArray());
7070
}
@@ -74,7 +74,7 @@ public function offsetExists($offset): bool
7474
*
7575
* @return TValue
7676
*/
77-
public function offsetGet($offset)
77+
public function offsetGet(mixed $offset): mixed
7878
{
7979
$serialized = $this->toArray();
8080
if (!array_key_exists($offset, $serialized)) {
@@ -88,15 +88,15 @@ public function offsetGet($offset)
8888
* @param TKey $offset
8989
* @param TValue $value
9090
*/
91-
final public function offsetSet($offset, $value): void
91+
final public function offsetSet(mixed $offset, mixed $value): void
9292
{
9393
throw new BadMethodCallException(sprintf('%s is immutable', static::class));
9494
}
9595

9696
/**
9797
* @param TKey $offset
9898
*/
99-
final public function offsetUnset($offset): void
99+
final public function offsetUnset(mixed $offset): void
100100
{
101101
throw new BadMethodCallException(sprintf('%s is immutable', static::class));
102102
}

0 commit comments

Comments
 (0)