Skip to content

Commit 92cad4d

Browse files
committed
Phpstan level 4 fixes
1 parent 877386b commit 92cad4d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/Github/Api/Repository/Assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function show($username, $repository, $id)
6767
*/
6868
public function create($username, $repository, $id, $name, $contentType, $content)
6969
{
70-
if (!defined('OPENSSL_TLSEXT_SERVER_NAME') || !OPENSSL_TLSEXT_SERVER_NAME) {
71-
throw new ErrorException('Asset upload support requires Server Name Indication. This is not supported by your PHP version. See http://php.net/manual/en/openssl.constsni.php.');
70+
if (!defined('OPENSSL_TLSEXT_SERVER_NAME') || OPENSSL_TLSEXT_SERVER_NAME == 0) {
71+
throw new ErrorException('Asset upload support requires Server Name Indication. This is not supported by your PHP version. See https://www.php.net/manual/en/openssl.constsni.php.');
7272
}
7373

7474
// Asset creation requires a separate endpoint, uploads.github.com.

lib/Github/HttpClient/Plugin/Authentication.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public function doHandleRequest(RequestInterface $request, callable $next, calla
7979

8080
default:
8181
throw new RuntimeException(sprintf('%s not yet implemented', $this->method));
82-
break;
8382
}
8483

8584
return $next($request);

0 commit comments

Comments
 (0)