diff --git a/libraries/src/Helper/TagsHelper.php b/libraries/src/Helper/TagsHelper.php index 56f7ded3b7a9..fb8a36912be9 100644 --- a/libraries/src/Helper/TagsHelper.php +++ b/libraries/src/Helper/TagsHelper.php @@ -825,9 +825,11 @@ public static function getTypes($arrayType = 'objectList', $selectTypes = null, * * @deprecated 5.3 will be removed in 7.0 */ - public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true) + public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true): void { - $this->postStore($table, $newTags, $replace); + @trigger_error('7.0 Method postStoreProcess() is deprecated, use postStore() instead.', \E_USER_DEPRECATED); + + $this->postStore($table, (array) $newTags, (bool) $replace); } /** @@ -843,7 +845,7 @@ public function postStoreProcess(TableInterface $table, $newTags = [], $replace * * @since __DEPLOY_VERSION__ */ - public function postStore(TableInterface $table, $newTags = [], $replace = true, $remove = false) + public function postStore(TableInterface $table, array $newTags = [], bool $replace = true, bool $remove = false): bool { if (!empty($table->newTags) && empty($newTags)) { $newTags = $table->newTags;