Skip to content

Commit 86f0c6b

Browse files
Update app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php
in_array with strict Co-authored-by: Lena Orobei <[email protected]>
1 parent f9374c8 commit 86f0c6b

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function execute()
128128
$attributeCode
129129
);
130130

131-
if (in_array($attributeCode, self::RESERVED_CODES)) {
131+
if (in_array($attributeCode, self::RESERVED_CODES, true)) {
132132
$message = __('Code (%1) is a reserved key and cannot be used as attribute code.', $attributeCode);
133133
$this->setMessageToResponse($response, [$message]);
134134
$response->setError(true);

0 commit comments

Comments
 (0)