Skip to content

Commit 65880dc

Browse files
authored
[6.0] Added typehints for new functions from joomla#40613 (joomla#44740)
1 parent 78fa2e7 commit 65880dc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

libraries/src/Helper/TagsHelper.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,9 +825,11 @@ public static function getTypes($arrayType = 'objectList', $selectTypes = null,
825825
*
826826
* @deprecated 5.3 will be removed in 7.0
827827
*/
828-
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true)
828+
public function postStoreProcess(TableInterface $table, $newTags = [], $replace = true): void
829829
{
830-
$this->postStore($table, $newTags, $replace);
830+
@trigger_error('7.0 Method postStoreProcess() is deprecated, use postStore() instead.', \E_USER_DEPRECATED);
831+
832+
$this->postStore($table, (array) $newTags, (bool) $replace);
831833
}
832834

833835
/**
@@ -843,7 +845,7 @@ public function postStoreProcess(TableInterface $table, $newTags = [], $replace
843845
*
844846
* @since __DEPLOY_VERSION__
845847
*/
846-
public function postStore(TableInterface $table, $newTags = [], $replace = true, $remove = false)
848+
public function postStore(TableInterface $table, array $newTags = [], bool $replace = true, bool $remove = false): bool
847849
{
848850
if (!empty($table->newTags) && empty($newTags)) {
849851
$newTags = $table->newTags;

0 commit comments

Comments
 (0)