Fix misc warnings in PHP 8.0

This commit is contained in:
Kijin Sung 2020-12-13 21:21:10 +09:00
parent b5cdd1212e
commit 855e12a5de
7 changed files with 40 additions and 20 deletions

View file

@ -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;
}
/**