return Apiato::call("Wechat@GetTmpKeyTask",[$data->tmpKey],['withinExpiration']);
call 这种方式最终都是运行 GetTmpKeyTask 的 run 方法,想要能有直观的方式知道 run 方法的入参。
代码提示 tabnine 勉强还行,方法跳转没想到啥好的方法。
return Apiato::call("Wechat@GetTmpKeyTask",[$data->tmpKey],['withinExpiration']);
call 这种方式最终都是运行 GetTmpKeyTask 的 run 方法,想要能有直观的方式知道 run 方法的入参。
代码提示 tabnine 勉强还行,方法跳转没想到啥好的方法。
|
cooooldJan 19, 2021
1
namespace PHPSTORM_META
|
|
cooooldJan 19, 2021
2
.phpstorm.meta.php
override() 方法 |
|
5
|
|
niucilityJan 19, 2021 via Android
6
不要用字符串的方式调用,用 GetTmpKeyTask::class 的方式来调用
|
|
7
@niucility apiato 这个框架不太推荐这么做,避免不同模块之间的直接依赖。我觉得也挺有道理,要是 GetTmpKeyTask::class 这种方式能解决第二个参数提示是 GetTmpKeyTask::class 这类的 RUN 方法的参数的吧就比较好了
|
|
zjsxwcFeb 17, 2021 via Android
12
再套个娃呗,写个脚本生成类似下面这种代码。
/** * @param string $datatmpKey */ function RunGetTmpKeyTask($datatmpKey){ return Apiato::call("Wechat@GetTmpKeyTask",[$datatmpKey],['withinExpiration']); } |
|
8355Jun 7, 2021
13
ACEJUMP?
|