Skip to content

Commit

Permalink
webmozarts#213 use static::valueToString() instead of `static::type…
Browse files Browse the repository at this point in the history
…ToString()` for `Assert::positiveInteger()` failures

Ref: webmozarts#214 (comment)
  • Loading branch information
Ocramius committed Jan 19, 2021
1 parent e6030ef commit 7c72c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function positiveInteger($value, $message = '')
if (! (\is_int($value) && $value > 0)) {
static::reportInvalidArgument(\sprintf(
$message ?: 'Expected a positive integer. Got: %s',
static::typeToString($value)
static::valueToString($value)
));
}
}
Expand Down

0 comments on commit 7c72c3f

Please sign in to comment.