Skip to content

Commit d166baf

Browse files
committed
Minor fixes
1 parent abfd473 commit d166baf

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Controller/Admin/Settings/AbstractSettingsController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
abstract class AbstractSettingsController extends AbstractController
1212
{
13+
/**
14+
* @var array<string, mixed>
15+
*/
1316
protected array $settings;
1417

1518
public function __construct(

src/Controller/SitemapController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class SitemapController extends AbstractController
1717
#[Route(path: '/sitemap.xml', name: 'sitemap', defaults: self::DEFAULTS)]
1818
public function siteMap(): Response
1919
{
20-
return $this->render('sitemap/sitemap.xml.twig', []);
20+
return $this->render('sitemap/sitemap.xml.twig');
2121
}
2222

2323
#[Route(path: '/sitemap/cities.xml', name: 'cities_sitemap', defaults: self::DEFAULTS)]

src/Mailer/Mailer.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ public function __construct(private MailerInterface $mailer)
1919
*/
2020
public function send(Email $email): void
2121
{
22-
try {
23-
$this->mailer->send($email);
24-
} catch (TransportExceptionInterface $e) {
25-
throw $e;
26-
}
22+
$this->mailer->send($email);
2723
}
2824
}

0 commit comments

Comments
 (0)