Hi,
Found an issue with this example:
declare(strict_types=1);
namespace Devsense\Builtin;
abstract class TestAbstract
{
protected function _test1()
{
// Should not return an error (static::)
$title = static::TITLE;
echo "Test ".$title;
}
protected function _test2()
{
// Should return an error (self::)
$title = self::TITLE;
echo "Test ".$title;
}
}
Be careful, the class must be an abstract class and the constant must be use with static:: keyword and not self::
Thank you for the fix.