We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2554c commit 9dd65baCopy full SHA for 9dd65ba
src/Env.php
@@ -30,6 +30,7 @@ public static function search($expression, $data)
30
if (!self::$runtime) {
31
self::$runtime = self::createRuntime();
32
}
33
+
34
$runtime = self::$runtime;
35
return $runtime($expression, $data);
36
@@ -42,8 +43,7 @@ public static function search($expression, $data)
42
43
*/
44
public static function createRuntime()
45
{
- $compileDir = getenv(self::COMPILE_DIR);
46
- switch ($compileDir) {
+ switch ($compileDir = getenv(self::COMPILE_DIR)) {
47
case false: return new AstRuntime();
48
case 'on': return new CompilerRuntime();
49
default: return new CompilerRuntime($compileDir);
0 commit comments