File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/CatalogWidget/Model/Rule/Condition Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ public function collectValidatedAttributes($productCollection)
263
263
* @param \Magento\Framework\DataObject $attribute
264
264
* @return bool
265
265
*/
266
- private function isEnabledInFlat (\Magento \Framework \DataObject $ attribute )
266
+ private function isEnabledInFlat (\Magento \Framework \DataObject $ attribute ): bool
267
267
{
268
- return $ attribute ->getData ('backend_type ' ) == 'static '
269
- || $ attribute ->getData ('used_in_product_listing ' ) == 1
270
- || $ attribute ->getData ('used_for_sort_by ' ) == 1 ;
268
+ return $ attribute ->getData ('backend_type ' ) === 'static '
269
+ || ( int ) $ attribute ->getData ('used_in_product_listing ' ) = == 1
270
+ || ( int ) $ attribute ->getData ('used_for_sort_by ' ) = == 1 ;
271
271
}
272
272
}
You can’t perform that action at this time.
0 commit comments