瀏覽代碼

fix: currency service error

3.x
wallo 1 年之前
父節點
當前提交
9f2adea336
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      app/Services/CurrencyService.php

+ 3
- 3
app/Services/CurrencyService.php 查看文件

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;

Loading…
取消
儲存