Skip to content

Commit

Permalink
Merge branch '4.4' into 5.2
Browse files Browse the repository at this point in the history
* 4.4:
  [4.4] Add missing `@return` annotations
  Handle lock with long key
  • Loading branch information
nicolas-grekas committed Jul 23, 2021
2 parents bb07805 + 391d6d0 commit d5f42c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cloner/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,25 @@ public function offsetExists($key)
return $this->__isset($key);
}

/**
* @return mixed
*/
public function offsetGet($key)
{
return $this->__get($key);
}

/**
* @return void
*/
public function offsetSet($key, $value)
{
throw new \BadMethodCallException(self::class.' objects are immutable.');
}

/**
* @return void
*/
public function offsetUnset($key)
{
throw new \BadMethodCallException(self::class.' objects are immutable.');
Expand Down

0 comments on commit d5f42c3

Please sign in to comment.