chg: [base settings provider] pass settings by reference for evaluation

- opens it up for modifications by the hooking functions
cli-modification-summary
iglocska 2022-01-27 20:59:20 +01:00
parent 7834ab3d62
commit eb5f7aa675
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class BaseSettingsProvider
* @param array $setting
* @return mixed
*/
public function evaluateFunctionForSetting($fun, $setting)
public function evaluateFunctionForSetting($fun, &$setting)
{
$functionResult = true;
if (is_callable($fun)) { // Validate with anonymous function