framework icon indicating copy to clipboard operation
framework copied to clipboard

注释调整、返回值调整、清理冗余

Open big-dream opened this issue 2 years ago • 2 comments

  • 注释调整,实际为普通数组,非对象数组;
  • 返回值调整,void => null;
  • 清理冗余参数 $value;

big-dream avatar May 08 '23 01:05 big-dream

image

如果注释返回是 @return Type[] ,对 IDE 貌似更友好。

hongweipeng avatar Jun 16 '23 14:06 hongweipeng

image

如果注释返回是 @return Type[] ,对 IDE 貌似更友好。

因为 Input->options 就是普通数组,不是Option[] ,我在IDE使用$input->getOptions()获取全部选项然后去使用时,IDE会给出错误提示。 image

根据实际排查和阅读代码,Input->options 最多就算是mixed[]而不是Option[] 

big-dream avatar Jun 26 '23 08:06 big-dream