1 | <?php declare (strict_types=1); |
||
17 | class OpenStack |
||
18 | { |
||
19 | /** @var Builder */ |
||
20 | private $builder; |
||
21 | |||
22 | /** |
||
23 | * @param array $options User-defined options |
||
24 | * |
||
25 | * $options['username'] = (string) Your OpenStack username [REQUIRED] |
||
26 | * ['password'] = (string) Your OpenStack password [REQUIRED] |
||
27 | * ['tenantId'] = (string) Your tenant ID [REQUIRED if tenantName omitted] |
||
28 | 7 | * ['tenantName'] = (string) Your tenant name [REQUIRED if tenantId omitted] |
|
29 | * ['authUrl'] = (string) The Keystone URL [REQUIRED] |
||
30 | 7 | * ['debugLog'] = (bool) Whether to enable HTTP logging [OPTIONAL] |
|
31 | 7 | * ['logger'] = (LoggerInterface) Must set if debugLog is true [OPTIONAL] |
|
32 | * ['messageFormatter'] = (MessageFormatter) Must set if debugLog is true [OPTIONAL] |
||
33 | */ |
||
34 | public function __construct(array $options = [], Builder $builder = null) |
||
42 | 1 | ||
43 | 1 | /** |
|
44 | * @param array $options |
||
45 | * |
||
46 | * @return Service |
||
47 | */ |
||
48 | private function getDefaultIdentityService(array $options): Service |
||
59 | |||
60 | /** |
||
61 | * Creates a new Compute v2 service. |
||
62 | * |
||
63 | * @param array $options Options that will be used in configuring the service. |
||
64 | * |
||
65 | * @return \OpenStack\Compute\v2\Service |
||
66 | 1 | */ |
|
67 | public function computeV2(array $options = []): \OpenStack\Compute\v2\Service |
||
72 | |||
73 | /** |
||
74 | * Creates a new Networking v2 service. |
||
75 | * |
||
76 | * @param array $options Options that will be used in configuring the service. |
||
77 | * |
||
78 | * @return \OpenStack\Networking\v2\Service |
||
79 | 1 | */ |
|
80 | public function networkingV2(array $options = []): \OpenStack\Networking\v2\Service |
||
85 | |||
86 | /** |
||
87 | * Creates a new Networking v2 Layer 3 service. |
||
88 | * |
||
89 | * @param array $options Options that will be used in configuring the service. |
||
90 | * |
||
91 | * @return \OpenStack\Networking\v2\Extensions\Layer3\Service |
||
92 | 1 | */ |
|
93 | public function networkingV2ExtLayer3(array $options = []): \OpenStack\Networking\v2\Extensions\Layer3\Service |
||
98 | |||
99 | /** |
||
100 | * Creates a new Networking v2 Layer 3 service. |
||
101 | * |
||
102 | * @param array $options Options that will be used in configuring the service. |
||
103 | * |
||
104 | * @return \OpenStack\Networking\v2\Extensions\SecurityGroups\Service |
||
105 | 1 | */ |
|
106 | public function networkingV2ExtSecGroups(array $options = []): \OpenStack\Networking\v2\Extensions\SecurityGroups\Service |
||
111 | |||
112 | /** |
||
113 | * Creates a new Identity v2 service. |
||
114 | * |
||
115 | * @param array $options Options that will be used in configuring the service. |
||
116 | * |
||
117 | * @return \OpenStack\Identity\v2\Service |
||
118 | 1 | */ |
|
119 | public function identityV2(array $options = []): \OpenStack\Identity\v2\Service |
||
124 | |||
125 | /** |
||
126 | * Creates a new Identity v3 service. |
||
127 | * |
||
128 | * @param array $options Options that will be used in configuring the service. |
||
129 | * |
||
130 | * @return \OpenStack\Identity\v3\Service |
||
131 | */ |
||
132 | public function identityV3(array $options = []): \OpenStack\Identity\v3\Service |
||
137 | |||
138 | /** |
||
139 | * Creates a new Object Store v1 service. |
||
140 | * |
||
141 | * @param array $options Options that will be used in configuring the service. |
||
142 | * |
||
143 | * @return \OpenStack\ObjectStore\v1\Service |
||
144 | */ |
||
145 | public function objectStoreV1(array $options = []): \OpenStack\ObjectStore\v1\Service |
||
150 | |||
151 | /** |
||
152 | * Creates a new Block Storage v2 service. |
||
153 | * |
||
154 | * @param array $options Options that will be used in configuring the service. |
||
155 | * |
||
156 | * @return \OpenStack\BlockStorage\v2\Service |
||
157 | */ |
||
158 | public function blockStorageV2(array $options = []): \OpenStack\BlockStorage\v2\Service |
||
163 | |||
164 | /** |
||
165 | * Creates a new Images v2 service. |
||
166 | * |
||
167 | * @param array $options Options that will be used in configuring the service. |
||
168 | * |
||
169 | * @return \OpenStack\Images\v2\Service |
||
170 | */ |
||
171 | public function imagesV2(array $options = []): \OpenStack\Images\v2\Service |
||
176 | } |
||
177 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: