Bug Entity::getStructure should be abstract

There is a bug in this version
X

Xon

Guest
XF\Mvc\Entity\Entity is defined as;
PHP:

Code:
public static function getStructure(Structure $structure)
{
    throw new \LogicException(static::class . '::getStructure() must be overridden');
}

This generates a false positive for phpstorm's "Missing parent call for method" inspector.

However php v7.0+ supports just marking it as abstract:
PHP:

abstract public static function getStructure(Structure $structure);

Technically this would be a breaking change, but an 3rd party Entity which...

Read more

Continue reading...