Skip to content

Commit

Permalink
Remove over-optimistic typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Mar 19, 2020
1 parent 37c5d5b commit 363c2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/midcom/baseclasses/components/interface.php
Expand Up @@ -187,10 +187,10 @@ public function get_nap_instance() : midcom_baseclasses_components_navigation
* Initiate a reindex run for the given component and topic.
*
* @param midcom_db_topic $topic The topic that should be reindexed.
* @return boolean Indicating success.
* @return boolean|midcom_services_indexer_client Indicating success or client to use
* @see _on_reindex()
*/
public function reindex($topic) : bool
public function reindex($topic)
{
return $this->_on_reindex($topic, $this->get_config_for_topic($topic), midcom::get()->indexer);
}
Expand Down

0 comments on commit 363c2cc

Please sign in to comment.