Skip to content

Commit a54c223

Browse files
clxmstaabacrobat
andauthored
Update lib/Github/HttpClient/Plugin/GithubExceptionThrower.php
Co-authored-by: Jeroen Thora <jeroenthora@gmail.com>
1 parent 2b35311 commit a54c223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/HttpClient/Plugin/GithubExceptionThrower.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function doHandleRequest(RequestInterface $request, callable $next, calla
6464
$code = $error['code'];
6565
}
6666

67-
switch ($code) {
67+
switch ($error['code'] ?? null) {
6868
case 'missing':
6969
$errors[] = sprintf('The %s %s does not exist, for resource "%s"', $error['field'], $error['value'], $error['resource']);
7070
break;

0 commit comments

Comments
 (0)