1
0
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:
Matthias Zronek 2019-10-28 11:03:44 +01:00
parent 8e4b0ceb86
commit 2f33b69786

View File

@ -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);