Commit 5d1dd142 authored by 谢宇轩's avatar 谢宇轩

fix: 适配php7.4以下的语法

parent 27a5e15e
...@@ -45,14 +45,14 @@ class {{ Endpoint }} ...@@ -45,14 +45,14 @@ class {{ Endpoint }}
* *
* @param Closure|null $catch * @param Closure|null $catch
* @param Closure|null $then * @param Closure|null $then
* @return array * @return mixed
* *
* @throws ApplicationException * @throws ApplicationException
* @throws SdkException * @throws SdkException
* @throws TimeOutExcetpion * @throws TimeOutExcetpion
* @throws GuzzleException * @throws GuzzleException
*/ */
public function {{ item.Action }}({{ item.Args }}?Closure $catch = null, ?Closure $then = null): mixed public function {{ item.Action }}({{ item.Args }}?Closure $catch = null, ?Closure $then = null)
{ {
$url = "{{ item.Uri }}"; $url = "{{ item.Uri }}";
{% if item.Join|length > 0 %} {% if item.Join|length > 0 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment