mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix misc warnings in PHP 8.0
This commit is contained in:
parent
b5cdd1212e
commit
855e12a5de
7 changed files with 40 additions and 20 deletions
|
|
@ -248,11 +248,11 @@ class BaseObject
|
|||
* Method to retrieve a corresponding value to a given key
|
||||
*
|
||||
* @param string $key
|
||||
* @return string Returns value to a given key
|
||||
* @return mixed Returns value to a given key
|
||||
*/
|
||||
public function get($key)
|
||||
{
|
||||
return $this->variables[$key];
|
||||
return $this->variables[$key] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue