Skip to content

Commit

Permalink
fix php incompat
Browse files Browse the repository at this point in the history
  • Loading branch information
zegenie committed Nov 18, 2024
1 parent da4eed3 commit 909c4c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Row.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getQuery(): QueryInterface
return $this->statement->getQuery();
}

public function offsetExists($offset): bool
public function offsetExists(mixed $offset): bool
{
if (strpos($offset, '.') === false) {
return array_key_exists($offset, $this->fields);
Expand All @@ -91,17 +91,17 @@ public function offsetExists($offset): bool
return array_key_exists($this->statement->getQuery()->getSelectionAlias($column), $this->fields);
}

public function offsetGet($offset)
public function offsetGet(mixed $offset): mixed
{
return $this->get($offset);
}

public function offsetSet($offset, $value): void
public function offsetSet(mixed $offset, mixed $value): void
{
throw new \Exception('Not supported');
}

public function offsetUnset($offset): void
public function offsetUnset(mixed $offset): void
{
throw new \Exception('Not supported');
}
Expand Down

0 comments on commit 909c4c9

Please sign in to comment.