for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cascader\Exception;
use InvalidArgumentException;
class InvalidOptionsException extends InvalidArgumentException implements ExceptionInterface
{
public static function forInvalidKeys()
return new static('Options should be in form of an associate array (string keys)');
}
public static function forMissingMandatoryParameter(string $className, string $parameterName)
return new static(sprintf(
'Mandatory parameter: \'%2$s\' of class: %1$s is missing from options',
$className,
$parameterName
));