fix(environment-variables): correct method call syntax in analyzeBuildVariable function

- Updated the method call syntax in the analyzeBuildVariable function to use curly braces for dynamic method invocation, ensuring proper execution of the specified check function.
This commit is contained in:
Andras Bacsai 2025-09-23 11:40:56 +02:00
parent e3a03eb647
commit 6dc5c53387

View file

@ -109,7 +109,7 @@ public static function analyzeBuildVariable(string $key, string $value): ?array
if (isset($config['check_function'])) {
$method = $config['check_function'];
if (method_exists(self::class, $method)) {
return self::$method($key, $value, $config);
return self::{$method}($key, $value, $config);
}
}