【发布时间】:2021-01-21 17:29:50
【问题描述】:
我正在使用 php 7.4 并在 github 中使用 phpstan 操作(最新)actions-x/phpstan@v1
我收到以下错误
返回类型在可迭代类型数组中没有指定值类型
关于以下方法:
class A{
/**
* @return array
*/
protected function get_next_bl():array{
return [
["some string",[]]
];
}
}
我不清楚这里出了什么问题。
【问题讨论】:
标签: php github-actions static-code-analysis php-7.4 phpstan