We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125230a commit 54a1444Copy full SHA for 54a1444
src/Condition/Condition.php
@@ -108,7 +108,8 @@ public function isAggregateFunction()
108
*/
109
public function setData(array $data)
110
{
111
- if ($phpFunction = $data[self::PHP_FUNCTION_OPERATOR_NAME][self::FUNCTION_OPERATOR_DEFINITION_NAME]) {
+ $phpFunction = $data[self::PHP_FUNCTION_OPERATOR_NAME][self::FUNCTION_OPERATOR_DEFINITION_NAME] ?? null;
112
+ if ($phpFunction) {
113
if (!function_exists($phpFunction)) {
114
throw new ContainerException(sprintf('PHP function "%s" not exists', $phpFunction));
115
}
0 commit comments