mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 00:38:26 +01:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
@@ -32,13 +32,8 @@ use Symfony\Component\Mime\Email;
|
||||
*/
|
||||
final class SetMailFromSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
private string $email;
|
||||
private string $name;
|
||||
|
||||
public function __construct(string $email, string $name)
|
||||
public function __construct(private readonly string $email, private readonly string $name)
|
||||
{
|
||||
$this->email = $email;
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function onMessage(MessageEvent $event): void
|
||||
|
||||
Reference in New Issue
Block a user