Static analysis error with psalm due to missing @template tag #6198
Labels
lang: php
Issues specific to PHP.
priority: p3
Desirable enhancement or fix. May not be included in next release.
Note: this is not a blocker as we can psalm-suppress the error and the code actually works fine, but I'm reporting this here since it seems like an easy fix and others might encounter the same issue.
Environment details
Steps to reproduce
$objects = $bucket->objects(['prefix' => $gcs_path, 'fields' => 'items,nextPageToken']);
Details: vimeo/psalm#9744
Code example
Error as reported by psalm on that code:
Per vimeo/psalm#9744, this can be fixed by adding an
@template
annotation to the src/ObjectIterator.php class (I have verified this)The text was updated successfully, but these errors were encountered: