Skip to content

Commit

Permalink
Update AdtMailerExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Mar 26, 2021
1 parent 6cf1429 commit 885f544
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/DI/AdtMailerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public function validateConfig(array $expected, array $config = NULL, $name = NU
throw new \Nette\UnexpectedValueException('Specify mail log directory.');
}

if (empty($config['suppressionControlAddress']) || !(is_string($config['suppressionControlAddress']) || is_callable(array_map(function($value) { return ltrim($value, '@'); }, $config['suppressionControlAddress'])))) {
throw new \Nette\UnexpectedValueException('Specify suppression control address as string or method (e.g. @ServiceClass::method).');
}

return $config;
}

Expand Down

0 comments on commit 885f544

Please sign in to comment.