Эх сурвалжийг харах

Do not attempt to json_decode null values

Nils Adermann 5 жил өмнө
parent
commit
47812d715f

+ 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;
     }
 
     /**