Closed nusje2000 closed 2 years ago
https://phpstan.org/r/642defe4-682f-4216-b8c7-6c36a9dfff67
When using the current function on an Iterator, the return should be T|null since null is returned when the iterator is empty.
current
T|null
Duplicate of https://github.com/phpstan/phpstan/issues/3674
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
https://phpstan.org/r/642defe4-682f-4216-b8c7-6c36a9dfff67
When using the
current
function on an Iterator, the return should beT|null
since null is returned when the iterator is empty.