File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
1919 *
2020 * @param array|null $options The options to configure the Request.
2121 */
22- public function __construct (array $ options = null )
22+ public function __construct (? array $ options = null )
2323 {
2424 $ this ->config = Config::options ($ options );
2525
26- $ clientData = $ this ->getClientData ($ options );
26+ $ clientData = $ this ->getClientData ($ options ?? [] );
2727 $ this ->client = new Client ($ clientData );
2828 }
2929
@@ -33,7 +33,7 @@ public function __construct(array $options = null)
3333 * @param array $options The options to configure the client.
3434 * @return array The configured data for the Guzzle HTTP Client.
3535 */
36- private function getClientData (array $ options ): array
36+ private function getClientData (array $ options = [] ): array
3737 {
3838 $ composerData = Utils::getComposerData ();
3939
You can’t perform that action at this time.
0 commit comments