Solved AbstractWatch::getDefaultWatchNotifyData is defined as protected but overridden as public

This topic has been solved
X

Xon

Guest
XF\Notifier\Post\AbstractWatch::getDefaultWatchNotifyData and XFRM\Notifier\ResourceUpdate\AbstractWatch::getDefaultWatchNotifyData are both defined as;

PHP:

abstract protected function getDefaultWatchNotifyData();

But all the implementations are;
PHP:

public function getDefaultWatchNotifyData()

Brought to you by the "Method visibility shouldn't be overridden" phpstorm inspector when updating two of my add-ons

Continue reading...