Private
Public Access
1
0

chg: pkg: upgrade the doctrine related back-end pkgs to the latest available version #7

This commit is contained in:
2026-04-20 09:05:36 +02:00
parent 5f856e4d70
commit 175581cdd5
30 changed files with 456 additions and 1015 deletions

View File

@@ -137,16 +137,16 @@ class MercureController extends AbstractController
$result = array_map(static function (PlayedGame $g): array {
$name = match (true) {
null !== $g->getRed() => $g->getRed()->getUsername(),
null !== $g->getRedAnon() => $g->getRedAnon()->getUserName(),
null !== $g->getBlue() => $g->getBlue()->getUsername(),
default => $g->getBlueAnon()?->getUserName() ?? 'Unknown',
null !== $g->red => $g->red->getUsername(),
null !== $g->redAnon => $g->redAnon->userName,
null !== $g->blue => $g->blue->getUsername(),
default => $g->blueAnon?->userName ?? 'Unknown',
};
return [
'gameAssoc' => $g->getGameAssoc(),
'gameAssoc' => $g->gameAssoc,
'name' => $name,
'since' => $g->getCreated()?->format(\DateTimeInterface::ATOM) ?? '',
'since' => $g->created?->format(\DateTimeInterface::ATOM) ?? '',
];
}, $games);