Hi,
Found this issue related to the reference counter for constant:
<?php
declare(strict_types=1);
namespace Devsense\Builtin;
final class TestA
{
/**
* Should have 1 reference
* @var string
*/
public const string MY_CONST = 'abc';
}
$testA = new TestA();
echo $testA::MY_CONST;
Note: It is maybe related to this ticket https://community.devsense.com/d/2063-reference-between-trait-and-class-does-not-work
Thank you for your fix.
Regards,