File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function handle(): void
7575 $ this ->preUpdateCode = $ this ->site ->getFrontendStatus ();
7676 } catch (RequestException $ e ) {
7777 // Catch request exceptions - they should not stop the process
78- $ this ->preUpdateCode = $ e ->getResponse ()->getStatusCode ();
78+ $ this ->preUpdateCode = $ e ->getResponse ()? ->getStatusCode();
7979 }
8080
8181 // Let site fetch available updates
@@ -122,7 +122,7 @@ public function handle(): void
122122 $ afterUpdateCode = $ this ->site ->getFrontendStatus ();
123123 } catch (RequestException $ e ) {
124124 // Again, do not fetch exceptions
125- $ afterUpdateCode = $ e ->getResponse ()->getStatusCode ();
125+ $ afterUpdateCode = $ e ->getResponse ()? ->getStatusCode();
126126 }
127127
128128 if ($ afterUpdateCode !== $ this ->preUpdateCode ) {
You can’t perform that action at this time.
0 commit comments