fix: [helper:bootstrap] Support of string and array for badge's class parameter

pull/93/head
Sami Mokaddem 2021-12-08 11:05:52 +01:00
parent 819d96e805
commit 8b5bb087e4
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -986,6 +986,7 @@ class BoostrapBadge extends BootstrapGeneric
private function processOptions($options)
{
$this->options = array_merge($this->defaultOptions, $options);
$this->options['class'] = is_array($this->options['class']) ? $this->options['class'] : [$this->options['class']];
$this->checkOptionValidity();
}