Sorry for the inconvenience, but I have been with this error for days and I really do not know if it is not a problem with the tool. I copy the code snippet and attached screenshot.
Attachment also captures where when performing var_dump it informs that the type is an array (). The code also works correctly but it is very annoying to report the error. Thank you very much and apologize if it's something I'm doing wrong. Regards!


As a workaround you can type hint the visible_para property. It's either getting type string from a constructor or setter assignment or existing type hint.
/**
* @var string|array
*/
public $visible_para;
As a workaround you can type hint the
visible_paraproperty. It's either getting typestringfrom a constructor or setter assignment or existing type hint./** * @var string|array */ public $visible_para;
Sorry, I half understand what you suggest, I am translating, I apologize, my English is not fluent.
Would you suggest that you change that suggestion value where? I show you how I have the documentation of my class in the code. I use Yii2 Framework. Osea the problem is not because it is not an array, but the definition is different to array and hence the tool takes the hint?
/**
* This is the model class for table "lista_precios".
*
* @property integer $id
* @property string $nombre
* @property string $descripcion
* @property integer $divisa_id
* @property string $visible_para
*
* @property Cliente[] $clientes
* @property Divisa $divisa
* @property ProdServListaPrecios[] $prodServListaPrecios
* @property Proveedor[] $proveedores
*/
class ListaPrecios extends ActiveAuditoriaLog
{
Greetings, I await your response!
/**
* @property string|array $visible_para
*/
/** * @property string|array $visible_para */
I appreciate your dedication in attending my query, it has been a great help, I stopped appearing the problem. I congratulate you! Regards!
Tracking underlying issue in #362
Most helpful comment
I appreciate your dedication in attending my query, it has been a great help, I stopped appearing the problem. I congratulate you! Regards!