Skip to content

Commit 82f5511

Browse files
committed
Adding returning strict typing
1 parent 3c8acbb commit 82f5511

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Eav/Model/Validator/Attribute

1 file changed

+2
-2
lines changed

app/code/Magento/Eav/Model/Validator/Attribute/Code.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class Code extends AbstractValidator
2222
/**
2323
* Validates the correctness of the attribute code
2424
*
25-
* @param $attributeCode
25+
* @param string $attributeCode
2626
* @return bool
2727
* @throws LocalizedException
2828
*/
29-
public function isValid($attributeCode)
29+
public function isValid($attributeCode): bool
3030
{
3131
/**
3232
* Check attribute_code for allowed characters

0 commit comments

Comments
 (0)