Skip to content

Commit

Permalink
Add some ReturnTypeWillChange annotations to Varien_object (OpenMage#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyingmana authored and elidrissidev committed Jul 22, 2022
1 parent d7d7806 commit a097ab7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Varien/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ public function debug($data=null, &$objects=array())
* @param string $offset
* @param mixed $value
*/
#[ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->_data[$offset] = $value;
Expand All @@ -803,6 +804,7 @@ public function offsetSet($offset, $value)
* @param string $offset
* @return boolean
*/
#[ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->_data[$offset]);
Expand All @@ -814,6 +816,7 @@ public function offsetExists($offset)
* @link http://www.php.net/manual/en/arrayaccess.offsetunset.php
* @param string $offset
*/
#[ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->_data[$offset]);
Expand All @@ -826,6 +829,7 @@ public function offsetUnset($offset)
* @param string $offset
* @return mixed
*/
#[ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->_data[$offset]) ? $this->_data[$offset] : null;
Expand Down

0 comments on commit a097ab7

Please sign in to comment.