Skip to content

Commit d758b29

Browse files
sreichelSven Reichel
authored and
Sven Reichel
committed
Added int as input type
Fixes phpstan where 1st parameter is entity_id and 2nd $product->getId() 115 Parameter #2 $value of method Magento\Catalog\Model\AbstractModel::loadByAttribute() expects array|string|null, int|null given.
1 parent b8892f0 commit d758b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/AbstractModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function getResourceCollection()
235235
* Load entity by attribute
236236
*
237237
* @param \Magento\Eav\Model\Entity\Attribute\AttributeInterface|integer|string|array $attribute
238-
* @param null|string|array $value
238+
* @param null|string|int|array $value
239239
* @param string $additionalAttributes
240240
* @return bool|\Magento\Catalog\Model\AbstractModel
241241
*/

0 commit comments

Comments
 (0)