Skip to content

Commit 544180e

Browse files
authored
Merge pull request #105 from phug-php/fix/strict-in-array
Use strict in_array checks in the lexer split: 594ea1a79de8078e9e5c0edc1440db2b574b23d0
1 parent 8b1260c commit 544180e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DependencyInjection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function get($name, array $exclude = [])
305305
return call_user_func_array($this->cache[$cacheKey], func_get_args());
306306
};
307307
$arguments = array_map(function ($dependencyName) use ($exclude, $callee) {
308-
return in_array($dependencyName, $exclude)
308+
return in_array($dependencyName, $exclude, true)
309309
? $callee
310310
: $this->get($dependencyName, $exclude);
311311
}, $dependency->getDependencies());

0 commit comments

Comments
 (0)