Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions libraries/src/Helper/TagsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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;
Expand Down