Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public static function isAOf(mixed $value, mixed $class, string $message = ''):
static::string($class, 'Expected class as a string. Got: %s');

if (!\is_a($value, $class, \is_string($value))) {
static::reportInvalidArgument(sprintf(
static::reportInvalidArgument(\sprintf(
$message ?: 'Expected an instance of this class or to this class among its parents "%2$s". Got: %s',
static::valueToString($value),
$class
Expand Down Expand Up @@ -599,7 +599,7 @@ public static function isNotA(mixed $value, mixed $class, string $message = ''):
static::string($class, 'Expected class as a string. Got: %s');

if (\is_a($value, $class, \is_string($value))) {
static::reportInvalidArgument(sprintf(
static::reportInvalidArgument(\sprintf(
$message ?: 'Expected an instance of this class or to this class among its parents other than "%2$s". Got: %s',
static::valueToString($value),
$class
Expand Down Expand Up @@ -631,7 +631,7 @@ public static function isAnyOf(mixed $value, mixed $classes, string $message = '
}
}

static::reportInvalidArgument(sprintf(
static::reportInvalidArgument(\sprintf(
$message ?: 'Expected an instance of any of this classes or any of those classes among their parents "%2$s". Got: %s',
static::valueToString($value),
\implode(', ', \iterator_to_array($classes))
Expand Down