Hi,
Found the following bug with multiple inline doc @var ...:
<?php
declare(strict_types=1);
namespace Devsense\Builtin\Doc;
use ArrayObject;
final class MyClass
{
public function __get(string $name): mixed
{
return new ArrayObject();
}
}
$a = new MyClass();
/**
* Both variables must be resolved
*
* @var ArrayObject $array
* @var ArrayObject $data
*/
$array = $a->data;
$array->getArrayCopy();
$data = $a->{'data'};
$data->getArrayCopy();
$data is not correctly resolved.
Thank you for the fix.