Fix type error
parent
dbdf6af886
commit
d63218c568
|
@ -271,7 +271,7 @@ class ArrayLoader implements LoaderInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($config['keywords']) && \is_array($config['keywords'])) {
|
if (!empty($config['keywords']) && \is_array($config['keywords'])) {
|
||||||
$package->setKeywords($config['keywords']);
|
$package->setKeywords(array_map('strval', $config['keywords']));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($config['license'])) {
|
if (!empty($config['license'])) {
|
||||||
|
|
|
@ -571,7 +571,7 @@ class ValidatingArrayLoader implements LoaderInterface
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($regex && !Preg::isMatch('{^'.$regex.'$}u', $value)) {
|
if ($regex && !Preg::isMatch('{^'.$regex.'$}u', (string) $value)) {
|
||||||
$this->warnings[] = $property.'.'.$key.' : invalid value ('.$value.'), must match '.$regex;
|
$this->warnings[] = $property.'.'.$key.' : invalid value ('.$value.'), must match '.$regex;
|
||||||
unset($this->config[$property][$key]);
|
unset($this->config[$property][$key]);
|
||||||
$pass = false;
|
$pass = false;
|
||||||
|
|
Loading…
Reference in New Issue