From 00ed559d04f252e94619c66e8c8f25ebe4343418 Mon Sep 17 00:00:00 2001 From: snap Date: Fri, 23 Dec 2022 13:05:45 +0200 Subject: [PATCH] #365: Patch PatternDefinitionVariant constructor to prevent a warning. --- src/Definition/PatternDefinitionVariant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Definition/PatternDefinitionVariant.php b/src/Definition/PatternDefinitionVariant.php index b17cabda..f9db7eea 100644 --- a/src/Definition/PatternDefinitionVariant.php +++ b/src/Definition/PatternDefinitionVariant.php @@ -32,7 +32,7 @@ public function __construct($name, $value) { } else { $this->definition['name'] = !isset($value['name']) ? $name : $value['name']; - $this->definition['label'] = $value['label']; + $this->definition['label'] = $value['label'] ?? ''; $this->definition = $value + $this->definition; } }