Skip to content

Commit 24742e0

Browse files
committed
Add missing return types
1 parent 1748e10 commit 24742e0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Constraints/IsbnValidator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ protected function validateIsbn13(string $isbn)
175175
return 0 === $checkSum % 10 ? true : Isbn::CHECKSUM_FAILED_ERROR;
176176
}
177177

178+
/**
179+
* @return string
180+
*/
178181
protected function getMessage(Isbn $constraint, string $type = null)
179182
{
180183
if (null !== $constraint->message) {

Exception/ValidationFailedException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function __construct(mixed $value, ConstraintViolationListInterface $viol
2828
parent::__construct($violations);
2929
}
3030

31+
/**
32+
* @return mixed
33+
*/
3134
public function getValue()
3235
{
3336
return $this->value;

0 commit comments

Comments
 (0)