Skip to content

Commit

Permalink
L6 (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored and tmotyl committed Dec 30, 2022
1 parent 1d22a56 commit 42d5b7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Autoload/Magento/ModuleControllerAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class ModuleControllerAutoloader
/** @var string */
private $codePool;

public function __construct(string $codePool, $magentoRoot = null)
public function __construct(string $codePool, string $magentoRoot = null)
{
if (empty($magentoRoot)) {
$magentoRoot = \dirname(BP, 2);
Expand Down
3 changes: 2 additions & 1 deletion src/Config/MagentoCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ public function getGroupedClassName($groupType, $classId, $groupRootNode = null)
/**
* copied from Mage_Core_Model_Config_Element to avoid calling Mage::
*
* @param \SimpleXMLElement $config
* @return string|false
*/
public function getClassName($config)
public function getClassName(\SimpleXMLElement $config)
{
if ($config->class) {
$model = (string)$config->class;
Expand Down
5 changes: 4 additions & 1 deletion src/Type/Mage/MethodReturnTypeDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

abstract class MethodReturnTypeDetector
{
/**
* @var MagentoCore|\Mage_Core_Model_Config|null
*/
protected static $config;

abstract protected static function getMethodName(): string;
Expand Down Expand Up @@ -52,7 +55,7 @@ protected function getTypeFromExpr(MethodReflection $methodReflection, $methodCa
/**
* Load Magento XML configuration
*
* @return MagentoCore | \Mage_Core_Model_Config
* @return MagentoCore|\Mage_Core_Model_Config
*/
protected function getMagentoConfig()
{
Expand Down

0 comments on commit 42d5b7d

Please sign in to comment.