Since ApiPlatform\Core\Metadata\Reflection\Reflection is declared final, using late-static binding will have no effect. You might want to replace static with self instead.
Late static binding only has effect in subclasses.
A final class cannot be extended anymore so late static binding cannot occurr.
Consider replacing static:: with self::.
To learn more about late static binding, please refer to the PHP core
documentation.
Loading history...
48
}
49
50
return self::$prefixes;
51
}
52
53
/**
54
* {@inheritdoc}
55
*/
56
public function getProperty($methodName)
57
{
58
$pattern = implode('|', self::getPrefixes());
59
60
if (preg_match('/^('.$pattern.')(.+)$/i', $methodName, $matches)) {
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.