Skip to content

Commit

Permalink
Adding returning strict typing
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Jan 28, 2019
1 parent 3c8acbb commit 82f5511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Eav/Model/Validator/Attribute/Code.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class Code extends AbstractValidator
/**
* Validates the correctness of the attribute code
*
* @param $attributeCode
* @param string $attributeCode
* @return bool
* @throws LocalizedException
*/
public function isValid($attributeCode)
public function isValid($attributeCode): bool
{
/**
* Check attribute_code for allowed characters
Expand Down

0 comments on commit 82f5511

Please sign in to comment.