Skip to content

Commit

Permalink
133 characters in one lane fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slava-basko committed Nov 11, 2023
1 parent d0d0a23 commit 95d81fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/TypedSpecification.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ private function assertCandidateType($candidate)
try {
if (!\call_user_func($this->type, $candidate)) {
throw new \InvalidArgumentException(\sprintf(
"TypedSpecification<%s>::isSatisfiedBy() type check failed (callback returned falsy result), candidate '%s'",
"%s<%s>::isSatisfiedBy() type check failed (callback returned falsy result), candidate '%s'",
\get_class($this),
\get_class($this->specification),
\is_object($candidate) ? \get_class($candidate) : \var_export($candidate, true)
));
Expand All @@ -59,7 +60,8 @@ private function assertCandidateType($candidate)
} catch (\Exception $exception) {
throw new \InvalidArgumentException(
\sprintf(
"TypedSpecification<%s>::isSatisfiedBy() type check failed (%s), candidate '%s'",
"%s<%s>::isSatisfiedBy() type check failed (%s), candidate '%s'",
\get_class($this),
\get_class($this->specification),
$exception->getMessage(),
\is_object($candidate) ? \get_class($candidate) : \var_export($candidate, true)
Expand Down

0 comments on commit 95d81fa

Please sign in to comment.