ci: add phpstan

This commit is contained in:
Maël Gangloff
2024-08-03 00:06:38 +02:00
parent b460e8aaa6
commit b7899cc8a5
11 changed files with 99 additions and 14 deletions

View File

@@ -102,7 +102,7 @@ readonly class RDAPService
->filter(fn (DomainEvent $e) => $e->getDate() <= new \DateTimeImmutable('now'))
->toArray();
usort($events, fn (DomainEvent $e1, DomainEvent $e2) => $e2->getDate() > $e1->getDate());
usort($events, fn (DomainEvent $e1, DomainEvent $e2) => $e2->getDate() <=> $e1->getDate());
return !empty($events) && in_array($events[0]->getAction(), self::IMPORTANT_EVENTS);
}