I've updated from 2.1.2 to 2.13 and there is a change in my messages.
For example :
Assert::isInstanceOf($myObject, MyClass::class, 'Not a valid object');
With version 2.1.2 it will return Not a valid object
With version 2.1.3 it will return Expected an object. Got: NULL
It seems to be related to this change:
bad8da8#diff-7bd03e2f6e9bd4ee8d0c85ead2263b222401f58506184bd6531505a6112f2d88R487
It this change intended to be added?
If so might it be a option for you to pass along the message to the static::object
public static function isInstanceOf(mixed $value, mixed $class, string $message = ''): object { static::object($value);
would be
public static function isInstanceOf(mixed $value, mixed $class, string $message = ''): object { static::object($value, $message);