chg: pkg: upgrade the doctrine related back-end pkgs to the latest available version #7
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user