Add return type hint to ViewModel::getIterator() #586
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
10s
Matrix: ci / QA Checks
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)
|