amphp / byte-stream

A non-blocking stream abstraction for PHP based on Amp.
https://amphp.org/byte-stream
MIT License
363 stars 31 forks source link

Fix psalm annotation #98

Closed sokil closed 2 years ago

sokil commented 2 years ago

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;
    }
kelunik commented 2 years ago

Thanks!