浏览代码

fix: currency service error

3.x
wallo 2 年前
父节点
当前提交
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;

正在加载...
取消
保存