1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 23:40:57 +01:00

Make optional options actually optional in cluster mailer config validation

This commit is contained in:
epriestley 2018-02-08 17:58:14 -08:00
parent d45952344b
commit 8de794d3c2

View file

@ -85,6 +85,8 @@ final class PhabricatorClusterMailersConfigType
$options = idx($spec, 'options', array());
try {
$defaults = $adapters[$type]->newDefaultOptions();
$options = $options + $defaults;
id(clone $adapters[$type])->setOptions($options);
} catch (Exception $ex) {
throw $this->newException(