diff options
Diffstat (limited to 'src/Context.php')
-rw-r--r-- | src/Context.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Context.php b/src/Context.php index dd912fb..eb7f299 100644 --- a/src/Context.php +++ b/src/Context.php @@ -416,6 +416,10 @@ abstract class Context */ public static function load($context = '') { + /** + * @var Context $context + */ + if (empty($context)) { $context = self::$defaultContext; } @@ -467,6 +471,7 @@ abstract class Context ); continue; } + // Last generated context was valid (did not throw any exceptions). // So we return it, to let the user know what context was loaded. return $context; |