Skip to content

Commit 696bdd3

Browse files
fix(tests): add typing to format validator
1 parent 77c02bf commit 696bdd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Database/Format.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Format extends Text
2121
*
2222
* @return string
2323
*/
24-
public function getDescription()
24+
public function getDescription(): string
2525
{
2626
return 'Value must be a valid email address';
2727
}
@@ -34,7 +34,7 @@ public function getDescription()
3434
* @param mixed $value
3535
* @return bool
3636
*/
37-
public function isValid($value)
37+
public function isValid($value): bool
3838
{
3939
if (!\filter_var($value, FILTER_VALIDATE_EMAIL)) {
4040
return false;

0 commit comments

Comments
 (0)