mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 15:22:08 +02:00
[ticket/14557] Rename $offset to $subarray
PHPBB3-14557
This commit is contained in:
parent
1eb451d0d4
commit
aa888fab34
@ -67,12 +67,12 @@ class data extends Event implements \ArrayAccess
|
||||
/**
|
||||
* Returns data with updated key in specified offset.
|
||||
*
|
||||
* @param string $offset Data array offset
|
||||
* @param string $key Offset key
|
||||
* @param mixed $value Value to update
|
||||
* @param string $subarray Data array subarray
|
||||
* @param string $key Subarray key
|
||||
* @param mixed $value Value to update
|
||||
*/
|
||||
public function update_subarray($offset, $key, $value)
|
||||
public function update_subarray($subarray, $key, $value)
|
||||
{
|
||||
$this->data[$offset][$key] = $value;
|
||||
$this->data[$subarray][$key] = $value;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user