Ver código fonte

fix: currency service error

3.x
wallo 2 anos atrás
pai
commit
9f2adea336
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      app/Services/CurrencyService.php

+ 3
- 3
app/Services/CurrencyService.php Ver arquivo

10
 
10
 
11
 class CurrencyService implements CurrencyHandler
11
 class CurrencyService implements CurrencyHandler
12
 {
12
 {
13
-    protected string $api_key;
13
+    protected string|null $api_key;
14
 
14
 
15
-    protected string $base_url;
15
+    protected string|null $base_url;
16
 
16
 
17
     protected Client $client;
17
     protected Client $client;
18
 
18
 
19
-    public function __construct(string $api_key, string $base_url, Client $client)
19
+    public function __construct(string|null $api_key, string|null $base_url, Client $client)
20
     {
20
     {
21
         $this->api_key = $api_key;
21
         $this->api_key = $api_key;
22
         $this->base_url = $base_url;
22
         $this->base_url = $base_url;

Carregando…
Cancelar
Salvar