fix: Joomla 6 event type compatibility (hotfix) #208
@@ -404,7 +404,7 @@ XML;
|
||||
/**
|
||||
* Dispatch cross-post when an article is saved and published.
|
||||
*/
|
||||
public function onContentAfterSave(\Joomla\CMS\Event\Content\AfterSaveEvent $event): void
|
||||
public function onContentAfterSave($event): void
|
||||
{
|
||||
$context = $event->getContext();
|
||||
|
||||
@@ -441,7 +441,7 @@ XML;
|
||||
/**
|
||||
* Dispatch cross-post when article state changes to published.
|
||||
*/
|
||||
public function onContentChangeState(\Joomla\CMS\Event\Content\ContentChangeStateEvent $event): void
|
||||
public function onContentChangeState($event): void
|
||||
{
|
||||
$context = $event->getContext();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user