Skip to content

Commit 6202e15

Browse files
fix(storage-api-client): make PHPStan array shape optional
Make token and url optional in the @phpstan-param array shape to be compatible with the constructor's default empty array value. Co-Authored-By: Tomáš Fejfar <tomas.fejfar@keboola.com>
1 parent ec24528 commit 6202e15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Keboola/StorageApi/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Client
155155
* - jobPollRetryDelay: callable method which determines wait period for job polling
156156
* - handler: custom Guzzle handler, allows mocking responses in tests
157157
* - authType: authentication type (AUTH_TYPE_STORAGE_TOKEN or AUTH_TYPE_BEARER)
158-
* @phpstan-param array{token: string, url: string, userAgent?: string, backoffMaxTries?: int, retryOnMaintenance?: bool, awsRetries?: int, logger?: \Psr\Log\LoggerInterface, jobPollRetryDelay?: callable, handler?: mixed, authType?: self::AUTH_TYPE_*} $config
158+
* @phpstan-param array{token?: string, url?: string, userAgent?: string, backoffMaxTries?: int, retryOnMaintenance?: bool, awsRetries?: int, logger?: \Psr\Log\LoggerInterface, jobPollRetryDelay?: callable, handler?: mixed, authType?: self::AUTH_TYPE_*} $config
159159
*/
160160
public function __construct(array $config = [])
161161
{

0 commit comments

Comments
 (0)