File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ class Request extends BaseModel
19
19
*
20
20
* @param array|null $options The options to configure the Request.
21
21
*/
22
- public function __construct (array $ options = null )
22
+ public function __construct (? array $ options = null )
23
23
{
24
24
$ this ->config = Config::options ($ options );
25
25
26
- $ clientData = $ this ->getClientData ($ options );
26
+ $ clientData = $ this ->getClientData ($ options ?? [] );
27
27
$ this ->client = new Client ($ clientData );
28
28
}
29
29
@@ -33,7 +33,7 @@ public function __construct(array $options = null)
33
33
* @param array $options The options to configure the client.
34
34
* @return array The configured data for the Guzzle HTTP Client.
35
35
*/
36
- private function getClientData (array $ options ): array
36
+ private function getClientData (array $ options = [] ): array
37
37
{
38
38
$ composerData = Utils::getComposerData ();
39
39
You can’t perform that action at this time.
0 commit comments