From a32c91914558a3ff293d83f7b99c49f4a7931798 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 18 Apr 2015 19:11:12 +0100 Subject: [PATCH] Return null instead of false --- src/Composer/Util/SpdxLicense.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Util/SpdxLicense.php b/src/Composer/Util/SpdxLicense.php index f52fafd81..650b918e4 100644 --- a/src/Composer/Util/SpdxLicense.php +++ b/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];