framework
framework copied to clipboard
注释调整、返回值调整、清理冗余
- 注释调整,实际为普通数组,非对象数组;
- 返回值调整,void => null;
- 清理冗余参数 $value;
如果注释返回是 @return Type[] ,对 IDE 貌似更友好。
如果注释返回是
@return Type[],对 IDE 貌似更友好。
因为 Input->options 就是普通数组,不是Option[] ,我在IDE使用$input->getOptions()获取全部选项然后去使用时,IDE会给出错误提示。
根据实际排查和阅读代码,Input->options 最多就算是mixed[]而不是Option[]
