Skip to content

Commit

Permalink
nuvoleweb#365: Patch PatternDefinitionVariant constructor to prevent …
Browse files Browse the repository at this point in the history
…a warning.
  • Loading branch information
ew-andrew-sus committed Dec 23, 2022
1 parent 6a20799 commit 00ed559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Definition/PatternDefinitionVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 00ed559

Please sign in to comment.