mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-03 03:21:39 +00:00
Experimental fix for https://github.com/firefly-iii/firefly-iii/issues/4424
This commit is contained in:
@@ -40,14 +40,10 @@ class ReportNewJournalsMail extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
/** @var string Email address of the user */
|
||||
public $email;
|
||||
/** @var Collection A collection of groups */
|
||||
public $groups;
|
||||
/** @var string IP address of user (if known) */
|
||||
public $ipAddress;
|
||||
/** @var array All groups, transformed to array. */
|
||||
public $transformed;
|
||||
public string $email;
|
||||
public Collection $groups;
|
||||
public string $ipAddress;
|
||||
public array $transformed;
|
||||
|
||||
/**
|
||||
* ConfirmEmailChangeMail constructor.
|
||||
|
@@ -50,6 +50,7 @@ class General extends AbstractExtension
|
||||
$this->formatFilesize(),
|
||||
$this->mimeIcon(),
|
||||
$this->markdown(),
|
||||
$this->floatval(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -297,6 +298,19 @@ class General extends AbstractExtension
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TwigFilter
|
||||
*/
|
||||
protected function floatval(): TwigFilter
|
||||
{
|
||||
return new TwigFilter(
|
||||
'floatval',
|
||||
static function ($value): float {
|
||||
return (float)$value;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show icon with attachment.
|
||||
*
|
||||
|
Reference in New Issue
Block a user