Skip to content

Commit d746b08

Browse files
authored
1 parent b7d8862 commit d746b08

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.rector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@
133133
Strict\Empty_\DisallowedEmptyRuleFixerRector::class, # todo: TMP
134134
TypeDeclaration\BooleanAnd\BinaryOpNullableToInstanceofRector::class, # todo: TMP
135135
TypeDeclaration\ClassMethod\ReturnNeverTypeRector::class,
136-
TypeDeclaration\Empty_\EmptyOnNullableObjectToInstanceOfRector::class, # todo: TMP
137-
TypeDeclaration\StmtsAwareInterface\DeclareStrictTypesRector::class, # SKIP
138-
# use static methods
136+
# skip: cannot be applied to OpenMage codebase - yet
137+
TypeDeclaration\StmtsAwareInterface\DeclareStrictTypesRector::class,
138+
# skip: use static methods
139139
PreferPHPUnitThisCallRector::class,
140140
__DIR__ . '/shell/translations.php',
141141
__DIR__ . '/shell/update-copyright.php',

app/code/core/Mage/Admin/Model/Redirectpolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function getRedirectUrl(
3939
?Zend_Controller_Request_Http $request = null,
4040
$alternativeUrl = null
4141
) {
42-
if (empty($request)) {
42+
if (!$request instanceof Zend_Controller_Request_Http) {
4343
return null;
4444
}
4545
$countRequiredParams = ($this->_urlModel->useSecretKey()

app/code/core/Mage/Shipping/Model/Carrier/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected function _getAllowedContainers(?Varien_Object $params = null)
176176
if (empty($containersAll)) {
177177
return [];
178178
}
179-
if (empty($params)) {
179+
if (!$params instanceof Varien_Object) {
180180
return $containersAll;
181181
}
182182
$containersFilter = $this->getContainerTypesFilter();

0 commit comments

Comments
 (0)