Skip to content

Fix missing data do warning #53

Fix missing data do warning

Fix missing data do warning #53

Triggered via push March 28, 2024 19:18
Status Failure
Total duration 1m 2s
Artifacts

main.yaml

on: push
Matrix: tests
Code Coverage
25s
Code Coverage
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PossiblyUndefinedArrayOffset: src/Consumer/ConsumerFactory.php#L61
src/Consumer/ConsumerFactory.php:61:20: PossiblyUndefinedArrayOffset: Possibly undefined array key $consumerData['qos'] on array{callback: callable, qos?: ArrayAccess|array{prefetchSize: mixed, ...<array-key, mixed>}|mixed, ...<string, mixed>} (see https://psalm.dev/167)
PossiblyNullReference: src/Consumer/ConsumerFactory.php#L61
src/Consumer/ConsumerFactory.php:61:20: PossiblyNullReference: Cannot call method offsetGet on possibly null value (see https://psalm.dev/083)
PossiblyNullArrayAccess: src/Consumer/ConsumerFactory.php#L61
src/Consumer/ConsumerFactory.php:61:20: PossiblyNullArrayAccess: Cannot access array value on possibly null variable $consumerData['qos'] of type ArrayAccess|array{prefetchSize: mixed, ...<array-key, mixed>}|mixed|null (see https://psalm.dev/079)
PossiblyUndefinedArrayOffset: src/Consumer/ConsumerFactory.php#L64
src/Consumer/ConsumerFactory.php:64:8: PossiblyUndefinedArrayOffset: Possibly undefined array key $consumerData['qos'] on array{callback: callable, qos?: ArrayAccess|array{prefetchSize: mixed, ...<array-key, mixed>}|mixed, ...<string, mixed>} (see https://psalm.dev/167)
PossiblyNullReference: src/Consumer/ConsumerFactory.php#L64
src/Consumer/ConsumerFactory.php:64:8: PossiblyNullReference: Cannot call method offsetGet on possibly null value (see https://psalm.dev/083)
PossiblyNullArrayAccess: src/Consumer/ConsumerFactory.php#L64
src/Consumer/ConsumerFactory.php:64:8: PossiblyNullArrayAccess: Cannot access array value on possibly null variable $consumerData['qos'] of type ArrayAccess|array{prefetchSize: mixed, ...<array-key, mixed>}|mixed|null (see https://psalm.dev/079)
PossiblyUndefinedArrayOffset: src/Consumer/ConsumerFactory.php#L65
src/Consumer/ConsumerFactory.php:65:21: PossiblyUndefinedArrayOffset: Possibly undefined array key $consumerData['qos'] on array{callback: callable, qos?: ArrayAccess|array{prefetchSize: mixed, ...<array-key, mixed>}|mixed, ...<string, mixed>} (see https://psalm.dev/167)
PossiblyNullReference: src/Consumer/ConsumerFactory.php#L65
src/Consumer/ConsumerFactory.php:65:21: PossiblyNullReference: Cannot call method offsetGet on possibly null value (see https://psalm.dev/083)
PossiblyNullArrayAccess: src/Consumer/ConsumerFactory.php#L65
src/Consumer/ConsumerFactory.php:65:21: PossiblyNullArrayAccess: Cannot access array value on possibly null variable $consumerData['qos'] of type ArrayAccess|array{prefetchSize: mixed, ...<array-key, mixed>}|mixed|null (see https://psalm.dev/079)
Psalm
Process completed with exit code 2.