File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/internal/Magento/Framework/Filter Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -343,13 +343,13 @@ protected function _createNativeZendFilter($filterData)
343
343
$ filter = $ filterData ['zend ' ];
344
344
if (is_string ($ filter )) {
345
345
$ filterClassName = 'Zend_Filter_ ' . ucfirst ($ filter );
346
+ if (!is_a ($ filterClassName , \Zend_Filter_Interface::class, true )) {
347
+ throw new \Exception ('Filter is not instance of \Zend_Filter_Interface ' );
348
+ }
346
349
$ filterClassOptions = isset ($ filterData ['args ' ]) ? $ filterData ['args ' ] : [];
347
350
$ filter = new $ filterClassName (...array_values ($ filterClassOptions ));
348
351
}
349
-
350
- if (!$ filter instanceof \Zend_Filter_Interface) {
351
- throw new \Exception ('Filter is not instance of \Zend_Filter_Interface ' );
352
- }
352
+
353
353
return $ filter ;
354
354
}
355
355
}
You can’t perform that action at this time.
0 commit comments