소스 검색

Return null instead of false

Jordi Boggiano 10 년 전
부모
커밋
a32c919145
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Util/SpdxLicense.php

+ 2 - 2
src/Composer/Util/SpdxLicense.php

@@ -49,12 +49,12 @@ class SpdxLicense
      *
      * @param string $identifier
      *
-     * @return array|false
+     * @return array|null
      */
     public function getLicenseByIdentifier($identifier)
     {
         if (!isset($this->licenses[$identifier])) {
-            return false;
+            return;
         }
 
         $license = $this->licenses[$identifier];