1
0
Fork 0

Merge branch '1.6'

pull/7151/head
Jordi Boggiano 2018-03-01 15:49:33 +01:00
commit 1dc78c1ad9
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ class ValidatingArrayLoader implements LoaderInterface
}
}
if (isset($this->config['license'])) {
// check for license validity on newly updated branches
if (isset($this->config['license']) && (!$releaseDate || $releaseDate->getTimestamp() >= strtotime('-8days'))) {
if (is_array($this->config['license']) || is_string($this->config['license'])) {
$licenses = (array) $this->config['license'];