mirror of
https://github.com/mrclay/minify.git
synced 2025-01-17 13:18:13 +01:00
Bugfix for option sanitizer
This commit is contained in:
parent
8e4b0ceb86
commit
2f33b69786
@ -80,10 +80,12 @@ class App extends Container
|
||||
};
|
||||
$varNames = array_map($prefixer, $propNames);
|
||||
|
||||
$varDefinedChecker = function ($name) {
|
||||
return array_key_exists($name, get_defined_vars());
|
||||
};
|
||||
$varNames = array_filter($varNames, $varDefinedChecker);
|
||||
$varDefined = get_defined_vars();
|
||||
|
||||
$varNames = array_filter($varNames, function($name) use($varDefined)
|
||||
{
|
||||
return array_key_exists($name, $varDefined);
|
||||
});
|
||||
|
||||
$vars = compact($varNames);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user