소스 검색

Merge branch '1.6'

Jordi Boggiano 7 년 전
부모
커밋
1dc78c1ad9
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Composer/Package/Loader/ValidatingArrayLoader.php

+ 2 - 1
src/Composer/Package/Loader/ValidatingArrayLoader.php

@@ -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'];