Skip to content

Commit

Permalink
Fix PhpStan error
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Feb 10, 2021
1 parent 0692dad commit e3ec858
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nette/utils": "^3.0",
"latte/latte": "^2.5",
"baraja-core/localization": "^2.0",
"baraja-core/dynamic-configuration": "^2.0",
"baraja-core/html-to-text": "^2.0",
"baraja-core/doctrine": "^3.0",
"baraja-core/doctrine-mail-message": "^2.0"
Expand Down
3 changes: 3 additions & 0 deletions src/Entity/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ final class Configuration
private array $adminEmails;


/**
* @param string[] $adminEmails
*/
public function __construct(string $tempDir, bool $useQueue, array $adminEmails = [])
{
$this->tempDir = $tempDir;
Expand Down
4 changes: 4 additions & 0 deletions src/Renderer/BaseTemplateRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ abstract class BaseTemplateRenderer implements Renderer

private string $tempDir;

/** @var mixed[] */
private array $defaultParameters;


/**
* @param mixed[] $defaultParameters
*/
final public function injectPrimary(
string $tempDir,
Localization $localization,
Expand Down
2 changes: 1 addition & 1 deletion src/Send/QueueRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private function process(Email $email): void
$this->logger->log(
Log::LEVEL_INFO,
'E-mail was successfully sent to '
. '"' . ($email->getMessage() === null ? '???' : $email->getMessage()->getTo()) . '" '
. '"' . $email->getMessage()->getTo() . '" '
. 'with subject "' . trim($message->getSubject() ?? 'NULL') . '". '
. 'Preparation took "' . Helper::formatMicroTime((int) $email->getPreparingDuration()) . '" '
. 'and sending took "' . Helper::formatMicroTime((int) $email->getSendingDuration()) . '"',
Expand Down

0 comments on commit e3ec858

Please sign in to comment.