Skip to content

Commit 47723ac

Browse files
Guzzle: Fix deprecation notice in getConfig (#491)
Fixes deprecation notice in Guzzle class function `getConfig`. closes #490 > Deprecated: Optional parameter $auth declared before required parameter $handlerStack is implicitly treated as a required parameter in verifiedjoseph/gotify-api-php/src/Guzzle.php on line 195
1 parent a4997a9 commit 47723ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Guzzle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function request(string $method, string $endpoint, array $options = []
192192
*
193193
* @return array<string, mixed> Returns client config array
194194
*/
195-
private function getConfig(string $uri, null|User|Token $auth = null, ?HandlerStack $handlerStack): array
195+
private function getConfig(string $uri, null|User|Token $auth = null, ?HandlerStack $handlerStack = null): array
196196
{
197197
$config = [
198198
'base_uri' => $uri,

0 commit comments

Comments
 (0)