diff --git a/tests/Caching/Cache.load.phpt b/tests/Caching/Cache.load.phpt index de92a8f5..7222d503 100644 --- a/tests/Caching/Cache.load.phpt +++ b/tests/Caching/Cache.load.phpt @@ -51,8 +51,7 @@ Assert::same($dependencies, $data['dependencies']); // load twice with fallback, pass dependencies function fallback(&$deps) { - global $dependencies; - $deps = $dependencies; + $deps = $GLOBALS['dependencies']; return 'value'; }