vimeo/psalm

MissingTemplateParam triggered by calling code

Open

#6,870 创建于 2021年11月9日

在 GitHub 查看
 (13 评论) (0 反应) (0 负责人)PHP (668 fork)batch import
easy problemsenhancementgood first issue

仓库指标

Star
 (5,369 star)
PR 合并指标
 (平均合并 3天 12小时) (30 天内合并 5 个 PR)

描述

Psalm version 4.12.0

ERROR: MissingTemplateParam - app/Services/ReportBuilder.php:126:19 - ArrayObject has missing template params, expecting 2 (see https://psalm.dev/182)
      $drawings = $sheeet->getDrawingCollection();

The problem is with the PhpSpreadsheet Worksheet class which only templates one argument.

I tried to make a simplified test case for this and it didn't work. This was the attempt. https://psalm.dev/r/1a3c9bae46

贡献者指南