"return type has no value type specified in iterable type array."错误不反映现实?

"return type has no value type specified in iterable type array." error does not reflect reality?

我正在使用 php 7.4 并在 github(最新)中使用 phpstan 动作 actions-x/phpstan@v1
我收到以下错误

return type has no value type specified in iterable type array

关于以下方法:

class A{
    /**
     * @return array
     */
    protected function get_next_bl():array{
        return [
            ["some string",[]]
        ];
    }
}

我不清楚这里出了什么问题。

最后我决定在本地安装 PHPStan 以深入挖掘。
在本地安装时 运行,您会收到更好的错误消息和修复建议。
PHPStan 期望您在 phpdoc 中告诉它数组成员的可能类型。由于所讨论的数组是数组的数组,所以 phpdoce 语法是:

@return array<array>