Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
kksandr7 authored and pjcdawkins committed Nov 25, 2024
1 parent d8f99dc commit 2e88582
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Model/ApiResourceBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function setBaseUrl($baseUrl)
/**
* @inheritdoc
*/
public function offsetExists($offset)
public function offsetExists(mixed $offset): bool
{
return $this->hasProperty($offset);
}
Expand Down Expand Up @@ -102,7 +102,7 @@ public function __isset($name) {
/**
* @inheritdoc
*/
public function offsetGet($offset)
public function offsetGet(mixed $offset): mixed
{
return $this->getProperty($offset, false);
}
Expand All @@ -125,7 +125,7 @@ public function __set($name, $value)
*
* @throws \BadMethodCallException
*/
public function offsetSet($offset, $value)
public function offsetSet(mixed $offset, $value): mixed
{
throw new \BadMethodCallException('Properties are read-only');
}
Expand All @@ -135,7 +135,7 @@ public function offsetSet($offset, $value)
*
* @throws \BadMethodCallException
*/
public function offsetUnset($offset)
public function offsetUnset(mixed $offset): void
{
throw new \BadMethodCallException('Properties are read-only');
}
Expand Down

0 comments on commit 2e88582

Please sign in to comment.