Problem/Motivation

Phan reports an PhanTypeExpectedObjectPropAccess warning when using array for @return.
Expected an object instance when accessing an instance property, but saw an expression $queue with type non-empty-array<mixed,mixed>

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dmitrii_Zadorozhnyi created an issue. See original summary.

Dmitrii_Zadorozhnyi’s picture

I would suggest to apply a patch.

renatog’s picture

Status: Needs review » Reviewed & tested by the community

It really makes sense. +1 to this #RTBC

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Moved to the dev branch.

Thank you so much for your contribution @dmitrii_zadorozhnyi

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.