File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
lib/internal/Magento/Framework/DataObject Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Framework \DataObject ;
7
9
8
10
use Ramsey \Uuid \Uuid ;
@@ -15,7 +17,7 @@ class IdentityValidator implements IdentityValidatorInterface
15
17
/**
16
18
* @inheritDoc
17
19
*/
18
- public function isValid ($ value )
20
+ public function isValid (string $ value ): bool
19
21
{
20
22
$ isValid = Uuid::isValid ($ value );
21
23
return $ isValid ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interface IdentityValidatorInterface
15
15
*
16
16
* @param string $value
17
17
*
18
- * @return string
18
+ * @return bool
19
19
*/
20
- public function isValid ($ value );
20
+ public function isValid (string $ value ): bool ;
21
21
}
You can’t perform that action at this time.
0 commit comments