Skip to content

Add return type hint to ViewModel::getIterator() #585

Add return type hint to ViewModel::getIterator()

Add return type hint to ViewModel::getIterator() #585

Triggered via pull request October 17, 2023 13:59
Status Failure
Total duration 1m 29s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

continuous-integration.yml

on: pull_request
ci  /  Generate job matrix
12s
ci / Generate job matrix
Matrix: ci / QA Checks
Fit to window
Zoom out
Zoom in

Annotations

2 errors
MixedReturnTypeCoercion: src/Model/ViewModel.php#L511
src/Model/ViewModel.php:511:16: MixedReturnTypeCoercion: The declared return type 'ArrayIterator<int, Laminas\View\Model\ModelInterface>' for Laminas\View\Model\ViewModel::getIterator is more specific than the inferred return type 'ArrayIterator<array-key, mixed>' (see https://psalm.dev/197)
MixedReturnTypeCoercion: src/Model/ViewModel.php#L516
src/Model/ViewModel.php:516:16: MixedReturnTypeCoercion: The type 'ArrayIterator<array-key, mixed>' is more general than the declared return type 'ArrayIterator<int, Laminas\View\Model\ModelInterface>' for Laminas\View\Model\ViewModel::getIterator (see https://psalm.dev/197)