File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,17 @@ public function getSensiolabVulnerabilties($fileLock)
7979 $ this ->command ->error ("ClientException! \nMessage: " . $ e ->getMessage ());
8080 $ colorTag = $ this ->getColorTagForStatusCode ($ e ->getResponse ()->getStatusCode ());
8181 $ this ->command ->line ("HTTP StatusCode: < {$ colorTag }> " . $ e ->getResponse ()->getStatusCode () . "< {$ colorTag }> " );
82- $ this ->printMessage ($ e ->getResponse () === null ? '' : $ e ->getResponse ());
82+ $ resp = $ e ->getResponse ();
83+ $ this ->printMessage ($ resp === null ? '' : $ resp );
8384 $ this ->printMessage ($ e ->getRequest ());
8485 } catch (\GuzzleHttp \Exception \RequestException $ e ) {
8586 $ this ->command ->error ("RequestException! \nMessage: " . $ e ->getMessage ());
8687 $ this ->printMessage ($ e ->getRequest ());
8788 if ($ e ->hasResponse ()) {
8889 $ colorTag = $ this ->getColorTagForStatusCode ($ e ->getResponse ()->getStatusCode ());
8990 $ this ->command ->line ("HTTP StatusCode: < {$ colorTag }> " . $ e ->getResponse ()->getStatusCode () . "< {$ colorTag }> " );
90- $ this ->printMessage ($ e ->getResponse () === null ? '' : $ e ->getResponse ());
91+ $ resp = $ e ->getResponse ();
92+ $ this ->printMessage ($ resp === null ? '' : $ resp );
9193 }
9294 }
9395 return $ response ;
You can’t perform that action at this time.
0 commit comments