Skip to content

Commit

Permalink
Merge pull request #137 from samayo/dev
Browse files Browse the repository at this point in the history
fix deprecation error
  • Loading branch information
samayo authored Nov 5, 2022
2 parents 9f1419e + 45d9efb commit e844462
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bulletproof.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,21 @@ public function __construct(array $_files = array())
* @param mixed $offset
* @param mixed $value
*/
public function offsetSet($offset, $value) {}
public function offsetSet($offset, $value) : void {}

/**
* \ArrayAccess unused method
*
* @param mixed $offset
*/
public function offsetExists($offset){}
public function offsetExists($offset) : bool {}

/**
* \ArrayAccess unused method
*
* @param mixed $offset
*/
public function offsetUnset($offset){}
public function offsetUnset($offset) : void {}

/**
* \ArrayAccess - get array value from object
Expand All @@ -137,7 +137,7 @@ public function offsetUnset($offset){}
*
* @return string|bool
*/
public function offsetGet($offset)
public function offsetGet($offset) : mixed
{
/* return false if $image['key'] isn't found */
if (!isset($this->_files[$offset])) {
Expand Down

0 comments on commit e844462

Please sign in to comment.