diff --git a/components/com_tags/src/Service/Router.php b/components/com_tags/src/Service/Router.php index 45af977b8af2c..24e3f7405df47 100644 --- a/components/com_tags/src/Service/Router.php +++ b/components/com_tags/src/Service/Router.php @@ -16,10 +16,8 @@ use Joomla\CMS\Component\Router\RouterBase; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Menu\AbstractMenu; -use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseInterface; use Joomla\Database\ParameterType; -use Joomla\Registry\Registry; use Joomla\Utilities\ArrayHelper; // phpcs:disable PSR1.Files.SideEffects @@ -50,16 +48,6 @@ class Router extends RouterBase */ protected $lookup = []; - /** - * System - SEF Plugin parameters - * - * @var Registry - * @since 5.2.0 - * @deprecated 5.2.0 will be removed in 7.0 - * without replacement - */ - private $sefparams; - /** * Tags Component router constructor * @@ -76,18 +64,9 @@ public function __construct(SiteApplication $app, AbstractMenu $menu, ?CategoryF parent::__construct($app, $menu); - $sefPlugin = PluginHelper::getPlugin('system', 'sef'); - - if ($sefPlugin) { - $this->sefparams = new Registry($sefPlugin->params); - } else { - $this->sefparams = new Registry(); - } - $this->buildLookup(); } - /** * Preprocess com_tags URLs * @@ -187,18 +166,6 @@ public function preprocess($query) } } - // TODO: Remove this whole block in 7.0 as it is a bug - if (!$this->sefparams->get('strictrouting', 0)) { - // If not found, return language specific home link - if (!isset($query['Itemid'])) { - $default = $this->menu->getDefault($lang); - - if (!empty($default->id)) { - $query['Itemid'] = $default->id; - } - } - } - return $query; } diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0af8782d81f55..aee8ea6baaa63 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -6957,16 +6957,6 @@ parameters: count: 1 path: components/com_tags/src/Model/TagModel.php - - - message: ''' - #^Access to deprecated property \$sefparams of class Joomla\\Component\\Tags\\Site\\Service\\Router\: - 5\.2\.0 will be removed in 7\.0 - without replacement$# - ''' - identifier: property.deprecated - count: 3 - path: components/com_tags/src/Service/Router.php - - message: ''' #^Call to deprecated method get\(\) of class Joomla\\CMS\\MVC\\View\\AbstractView\: