Skip to content

Commit 6bf9b7a

Browse files
committed
Declare strict types
1 parent 738792e commit 6bf9b7a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/internal/Magento/Framework/DataObject/IdentityValidator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\DataObject;
79

810
use Ramsey\Uuid\Uuid;
@@ -15,7 +17,7 @@ class IdentityValidator implements IdentityValidatorInterface
1517
/**
1618
* @inheritDoc
1719
*/
18-
public function isValid($value)
20+
public function isValid(string $value): bool
1921
{
2022
$isValid = Uuid::isValid($value);
2123
return $isValid;

lib/internal/Magento/Framework/DataObject/IdentityValidatorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface IdentityValidatorInterface
1515
*
1616
* @param string $value
1717
*
18-
* @return string
18+
* @return bool
1919
*/
20-
public function isValid($value);
20+
public function isValid(string $value): bool;
2121
}

0 commit comments

Comments
 (0)