|
30 | 30 |
|
31 | 31 | class FederationProxy { |
32 | 32 | public function __construct( |
33 | | - private IClientService $clientService, |
34 | | - private IUserSession $userSession, |
35 | | - private IConfig $config, |
36 | | - private IFactory $l10nFactory, |
37 | | - private LoggerInterface $logger, |
38 | | - private ICloudFederationProviderManager $federationProviderManager, |
39 | | - private ICloudFederationFactory $federationFactory, |
40 | | - private ICloudIdManager $cloudIdManager, |
41 | | - private ISignatureManager $signatureManager, |
42 | | - private ISignatoryManager $signatoryManager, |
| 33 | + private readonly IClientService $clientService, |
| 34 | + private readonly IUserSession $userSession, |
| 35 | + private readonly IConfig $config, |
| 36 | + private readonly IFactory $l10nFactory, |
| 37 | + private readonly LoggerInterface $logger, |
| 38 | + private readonly ICloudFederationProviderManager $federationProviderManager, |
| 39 | + private readonly ICloudFederationFactory $federationFactory, |
| 40 | + private readonly ICloudIdManager $cloudIdManager, |
| 41 | + private readonly ISignatureManager $signatureManager, |
| 42 | + private readonly ISignatoryManager $signatoryManager, |
43 | 43 | ) { |
44 | 44 | } |
45 | 45 |
|
@@ -170,7 +170,7 @@ private function prepareSignedRequestOptions(string $verb, string $url, ?string |
170 | 170 | ); |
171 | 171 |
|
172 | 172 | if (!empty($parameters)) { |
173 | | - $options['json'] = json_decode($options['body'], true); |
| 173 | + $options['json'] = json_decode((string) $options['body'], true); |
174 | 174 | unset($options['body']); |
175 | 175 | } |
176 | 176 |
|
|
0 commit comments