Hi,
I found a bug or a use case that can be improved:
<?php
declare(strict_types=1);
namespace Devsense\Common\Trait1;
trait MyTrait
{
public static function factory1(): int
{
$self = new self();
return $self->test();
}
public static function factory2(): int
{
$static = new static();
return $static->test();
}
public function test(): int
{
return 0;
}
}
The test() function calls are not resolved.
Thank you for your fix.