Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed Feb 27, 2022
1 parent d84cb61 commit 8b5a3f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/StaticEntitySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function offsetExists($offset): bool
return array_key_exists($offset, $this->results);
}

public function offsetGet($offset)
public function offsetGet($offset): ?Entity
{
return $this->results[$offset];
}
Expand Down
2 changes: 2 additions & 0 deletions src/Helper/ObjectArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function exists($key): bool
* Get the current value in the array
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return current($this->array);
Expand Down Expand Up @@ -199,6 +200,7 @@ public function get($key)
* @param mixed $offset
* @return mixed|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->get($offset);
Expand Down
2 changes: 1 addition & 1 deletion src/Transaction/MetadataContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function offsetExists($offset): bool
return array_key_exists($offset, $this->properties);
}

public function offsetGet($offset)
public function offsetGet($offset): ?string
{
return $this->properties[$offset];
}
Expand Down

0 comments on commit 8b5a3f8

Please sign in to comment.