mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 21:35:25 +09:00
Implement __get() placeholder to prevent a flood of E_NOTICE
This commit is contained in:
parent
b957bfebc5
commit
32fd2fb609
1 changed files with 13 additions and 0 deletions
|
|
@ -1945,6 +1945,19 @@ class Context
|
||||||
return $url[$ssl_mode][$domain_key];
|
return $url[$ssl_mode][$domain_key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Magic method to return null instead of throwing E_NOTICE when undefined properties are accessed
|
||||||
|
*
|
||||||
|
* We do not define a corresponding __set() because it does not work with assignment by reference.
|
||||||
|
*
|
||||||
|
* @param string $key
|
||||||
|
* @return null
|
||||||
|
*/
|
||||||
|
public function __get($key)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a context value with a key
|
* Set a context value with a key
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue