From 909c4c9e3a12a8bb8289679f9d06b0f006a64a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Andr=C3=A9=20Eikeland?= Date: Mon, 18 Nov 2024 20:19:24 +0100 Subject: [PATCH] fix php incompat --- src/Row.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Row.php b/src/Row.php index a6a82e3..41fcfd0 100644 --- a/src/Row.php +++ b/src/Row.php @@ -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); @@ -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'); }