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; } }