vimeo/psalm

MissingTemplateParam triggered by calling code

Open

#6.870 geöffnet am 9. Nov. 2021

Auf GitHub ansehen
 (13 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)PHP (668 Forks)batch import
easy problemsenhancementgood first issue

Repository-Metriken

Stars
 (5.369 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 12h) (5 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide