Address 'returning a value from a constructor is deprecated' warnings

This commit is contained in:
Aaron committed 2026-11-21 19:43:03 +01:00
1 parent 4e771ac23d
commit 858a75dc66
3 files changed
+36 -11

No files matched your search

+8 -2
View File
@@ -18,10 +18,16 @@ class ProvideAutoSuggest extends JSONController
throw new UnexpectedValueException('Unsupported autosuggest request.');
if ($_REQUEST['type'] === 'tags' && isset($_REQUEST['data']))
return $this->handleTagSearch();
{
$this->handleTagSearch();
return;
}
if ($_REQUEST['type'] === 'createtag' && isset($_REQUEST['tag']))
return $this->handleTagCreation();
{
$this->handleTagCreation();
return;
}
}
private function handleTagSearch()