diff --git a/Classes/Indexer/NodeIndexingManager.php b/Classes/Indexer/NodeIndexingManager.php index e3e9839..7c1d76a 100644 --- a/Classes/Indexer/NodeIndexingManager.php +++ b/Classes/Indexer/NodeIndexingManager.php @@ -79,7 +79,7 @@ public function injectSettings(array $settings) * @param Workspace $targetWorkspace In case this is triggered during publishing, a Workspace will be passed in * @return void */ - public function indexNode(NodeInterface $node, Workspace $targetWorkspace = null) + public function indexNode(NodeInterface $node, $targetWorkspace = null) { // if this is triggered via afterNodePublishing, it could be a deletion, check and handle if ($node->isRemoved() && $targetWorkspace !== null && $targetWorkspace->getBaseWorkspace() === null) { @@ -97,10 +97,10 @@ public function indexNode(NodeInterface $node, Workspace $targetWorkspace = null * Schedule a node for removal of the index * * @param NodeInterface $node - * @param Workspace $targetWorkspace In case this is triggered during publishing, a Workspace will be passed in + * @param mixed $targetWorkspace In case this is triggered during publishing, a Workspace will be passed in. Otherwise a signal information string can be found in the second argument. * @return void */ - public function removeNode(NodeInterface $node, Workspace $targetWorkspace = null) + public function removeNode(NodeInterface $node, $targetWorkspace = null): void { $this->nodesToBeIndexed->detach($node); $this->nodesToBeRemoved->attach($node);