Skip to content

Commit

Permalink
Cleanup: removed broken Mage_Core_Controller_Front_Router (#4356)
Browse files Browse the repository at this point in the history
* Fix: Mage_Core_Controller_Front_Router::getUrl()

* phpstan

* removed method

* Delete app/code/core/Mage/Core/Controller/Front/Router.php

* baseline

---------

Co-authored-by: Ng Kiat Siong <[email protected]>
  • Loading branch information
sreichel and kiatng authored Dec 9, 2024
1 parent f24a6a8 commit dfa021b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 114 deletions.
10 changes: 0 additions & 10 deletions .phpstan.dist.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2535,16 +2535,6 @@ parameters:
count: 1
path: app/code/core/Mage/Core/Controller/Front/Action.php

-
message: "#^Call to an undefined method Zend_Controller_Router_Interface\\:\\:addRoute\\(\\)\\.$#"
count: 1
path: app/code/core/Mage/Core/Controller/Front/Router.php

-
message: "#^Parameter \\#1 \\$type of static method Mage\\:\\:getBaseUrl\\(\\) expects string, array given\\.$#"
count: 1
path: app/code/core/Mage/Core/Controller/Front/Router.php

-
message: "#^Constructor of class Mage_Core_Controller_Varien_Action has an unused parameter \\$invokeArgs\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public static function getStoreConfigFlag($path, $store = null)
/**
* Get base URL path by type
*
* @param string $type
* @param Mage_Core_Model_Store::URL_TYPE_* $type
* @param null|bool $secure
* @return string
*/
Expand Down
102 changes: 0 additions & 102 deletions app/code/core/Mage/Core/Controller/Front/Router.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public function getUrl($route = '', $params = [])
/**
* Retrieve base URL
*
* @param string $type
* @param self::URL_TYPE_* $type
* @param bool|null $secure
* @return string
*/
Expand Down

0 comments on commit dfa021b

Please sign in to comment.