From 7c72c3f39b3369393f54c68b0b88ad1f6dfbea52 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Mon, 31 Aug 2020 11:19:56 +0200 Subject: [PATCH] #213 use `static::valueToString()` instead of `static::typeToString()` for `Assert::positiveInteger()` failures Ref: https://github.com/webmozart/assert/pull/214#discussion_r479508186 --- src/Assert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Assert.php b/src/Assert.php index d95b588c..eaf1a697 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -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) )); } }