Skip to content

Commit ba3e9f5

Browse files
🐛 fix: deprecation warning when setting array|null
1 parent 30a9095 commit ba3e9f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Efi/Request.php

+3-3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)