Selaa lähdekoodia

fix(openstack): Fix psalm issue with updated openstack version

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/44970/head
Joas Schilling 1 kuukausi sitten
vanhempi
commit
cdb40a3110
No account linked to committer's email address

+ 4
- 1
lib/private/Files/ObjectStore/SwiftV2CachingAuthService.php Näytä tiedosto

*/ */
namespace OC\Files\ObjectStore; namespace OC\Files\ObjectStore;


use OpenStack\Common\Auth\Token;
use OpenStack\Identity\v2\Service; use OpenStack\Identity\v2\Service;


class SwiftV2CachingAuthService extends Service { class SwiftV2CachingAuthService extends Service {
public function authenticate(array $options = []): array { public function authenticate(array $options = []): array {
if (!empty($options['v2cachedToken'])) {
if (isset($options['v2cachedToken'], $options['v2serviceUrl'])
&& $options['v2cachedToken'] instanceof Token
&& is_string($options['v2serviceUrl'])) {
return [$options['v2cachedToken'], $options['v2serviceUrl']]; return [$options['v2cachedToken'], $options['v2serviceUrl']];
} else { } else {
return parent::authenticate($options); return parent::authenticate($options);

Loading…
Peruuta
Tallenna