ソースを参照

Do not attempt to json_decode null values

Nils Adermann 5 年 前
コミット
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;
     }
 
     /**