Explorar o código

Return null instead of false

Jordi Boggiano %!s(int64=10) %!d(string=hai) anos
pai
achega
a32c919145
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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];