public static function createForOptionalValueQuantifier($quantifier) : \TypeError
{
return new \TypeError(sprintf('Expected quantifier to be either a scalar value or an instance of "%s". Got "%s" instead.', ValueInterface::class, is_object($quantifier) ? get_class($quantifier) : gettype($quantifier)));
}