Skip to content

Make Iterator::key() and ::current() nullable #20974

Make Iterator::key() and ::current() nullable

Make Iterator::key() and ::current() nullable #20974

Triggered via pull request May 13, 2025 19:26
Status Failure
Total duration 3m 27s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
1m 37s
Generate baseline
Generate PHP baseline
1m 33s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

4 errors
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): stubs/iterable.stub#L478
Return type mixed of method EmptyIterator::valid() is not covariant with return type bool of method Iterator<never,never>::valid().