for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PhpValueObjects\Collection\Exception;
use Exception;
final class InvalidCollectionObjectException extends Exception
{
public function __construct($actual, string $expected)
parent::__construct(
sprintf('"%s" is not a valid object for collection. Expected "%s"', get_class($actual), $expected)
);
}