소스 검색

Do not attempt to json_decode null values

Nils Adermann 6 년 전
부모
커밋
47812d715f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Packagist/WebBundle/Entity/Version.php

+ 1 - 1
src/Packagist/WebBundle/Entity/Version.php

@@ -642,7 +642,7 @@ class Version
      */
     public function getFunding()
     {
-        return json_decode($this->funding, true);
+        return $this->funding ? json_decode($this->funding, true) : null;
     }
 
     /**