Upgrade to rc5

This commit is contained in:
Bastian Allgeier
2020-12-10 11:24:42 +01:00
parent 3fec0d7c93
commit c378376bc9
257 changed files with 13009 additions and 1846 deletions

View File

@@ -21,6 +21,22 @@ class Email
{
use Properties;
/**
* If set to `true`, the debug mode is enabled
* for all emails
*
* @var bool
*/
public static $debug = false;
/**
* Store for sent emails when `Email::$debug`
* is set to `true`
*
* @var array
*/
public static $emails = [];
/**
* @var array|null
*/
@@ -96,9 +112,13 @@ class Email
{
$this->setProperties($props);
if ($debug === false) {
$this->send(); // @codeCoverageIgnore
// @codeCoverageIgnoreStart
if (static::$debug === false && $debug === false) {
$this->send();
} elseif (static::$debug === true) {
static::$emails[] = $this;
}
// @codeCoverageIgnoreEnd
}
/**