FIX Use self::inst() for Injector/Config nest methods

This commit is contained in:
Daniel Hensby 2017-10-25 17:45:14 +01:00
parent 8aad080516
commit 32cef975ef
No known key found for this signature in database
GPG Key ID: 5DE415D786BBB2FD
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ class Injector {
* @return Injector Reference to new active Injector instance
*/
public static function nest() {
$current = self::$instance;
$current = self::inst();
$new = clone $current;
$new->nestedFrom = $current;

View File

@ -223,7 +223,7 @@ class Config {
* @return Config Reference to new active Config instance
*/
public static function nest() {
$current = self::$instance;
$current = self::inst();
$new = clone $current;
$new->nestedFrom = $current;