Skip to content

Commit

Permalink
fix: 🩹 Fix PHP 8.1 notices (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs authored Sep 16, 2022
1 parent a088217 commit ce6811e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Navi.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public function toArray()
*
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->toArray();
Expand All @@ -145,6 +146,7 @@ public function toJson($options = 0)
* @param string $offset
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->attributes[$offset]);
Expand All @@ -156,6 +158,7 @@ public function offsetExists($offset)
* @param string $offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->get($offset);
Expand All @@ -168,6 +171,7 @@ public function offsetGet($offset)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->attributes[$offset] = $value;
Expand All @@ -179,6 +183,7 @@ public function offsetSet($offset, $value)
* @param string $offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->attributes[$offset]);
Expand Down

0 comments on commit ce6811e

Please sign in to comment.