Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix psalm annotation #98

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Fix psalm annotation #98

merged 1 commit into from
Jun 21, 2022

Conversation

sokil
Copy link

@sokil sokil commented Jun 21, 2022

Constructor has invalid annotation. My IDE have indexed this annotation and adds it to autocomplete.
So i also have few invalid annotations in my code:)

    /**
     * @psam-param Iterator<string> $iterator
     */
    public function __construct(Iterator $iterator)
    {
        $this->iterator = $iterator;
    }

```
    /**
     * @psalm-param Iterator<string> $iterator
     */
    public function __construct(Iterator $iterator)
    {
        $this->iterator = $iterator;
    }
```
@kelunik kelunik merged commit 18f86b6 into amphp:master Jun 21, 2022
@kelunik
Copy link
Member

kelunik commented Jun 21, 2022

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants