Remove unused exception

parent 0241134e
......@@ -37,9 +37,4 @@ class InvalidArgumentException extends DBALException
{
return new self('Empty criteria was used, expected non-empty criteria');
}
public static function fromUnsupportedOption(string $name) : self
{
return new self(sprintf('The "%s" option is not supported', $name));
}
}
......@@ -120,7 +120,7 @@ class Column extends AbstractAsset
foreach ($options as $name => $value) {
$method = "set".$name;
if ( ! method_exists($this, $method)) {
// next major: use InvalidArgumentException::fromUnsupportedOption()
// next major: throw an exception
@trigger_error(sprintf(
'The "%s" option is not supported,'.
' setting it is deprecated and will cause an exception in 3.0',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment