File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 133
133
Strict \Empty_ \DisallowedEmptyRuleFixerRector::class, # todo: TMP
134
134
TypeDeclaration \BooleanAnd \BinaryOpNullableToInstanceofRector::class, # todo: TMP
135
135
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
139
139
PreferPHPUnitThisCallRector::class,
140
140
__DIR__ . '/shell/translations.php ' ,
141
141
__DIR__ . '/shell/update-copyright.php ' ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function getRedirectUrl(
39
39
?Zend_Controller_Request_Http $ request = null ,
40
40
$ alternativeUrl = null
41
41
) {
42
- if (empty ( $ request) ) {
42
+ if (! $ request instanceof Zend_Controller_Request_Http ) {
43
43
return null ;
44
44
}
45
45
$ countRequiredParams = ($ this ->_urlModel ->useSecretKey ()
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ protected function _getAllowedContainers(?Varien_Object $params = null)
176
176
if (empty ($ containersAll )) {
177
177
return [];
178
178
}
179
- if (empty ( $ params) ) {
179
+ if (! $ params instanceof Varien_Object ) {
180
180
return $ containersAll ;
181
181
}
182
182
$ containersFilter = $ this ->getContainerTypesFilter ();
You can’t perform that action at this time.
0 commit comments