chore: bump project to php 8.5
This commit is contained in:
1 parent
838b8944a2
commit
1446211d22
8 files changed
+35
-10
No files matched your search
@@ -31,7 +31,14 @@ class ContactController extends AbstractController
|
||||
];
|
||||
|
||||
foreach ($allContacts as $contact) {
|
||||
$contacts[$contact->getCategory()][] = $contact;
|
||||
// Only the three categories seeded above are rendered, so a contact without
|
||||
// one would land in a bucket nobody shows.
|
||||
$category = $contact->getCategory();
|
||||
if (null === $category || false === isset($contacts[$category])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$contacts[$category][] = $contact;
|
||||
}
|
||||
|
||||
return $this->render('teamer/contact/index.html.twig', [
|
||||
|
||||
Reference in new issue
Block a user