Fix phpstan errors

This commit is contained in:
Oliver Davies 2025-06-15 17:22:37 +01:00
parent af83b3c431
commit 229cc62b03
8 changed files with 16 additions and 17 deletions

View file

@ -35,9 +35,6 @@ readonly final class Events implements \Countable, \IteratorAggregate {
->filter(fn (Event $event): bool => $event->isPast());
}
/**
* @param non-empty-string[] $dates
*/
public static function fromDateStrings(string ...$dates): self {
$events = array_map(
array: $dates,

View file

@ -9,8 +9,6 @@ use Drupal\node\NodeInterface;
final class PresentationCounter {
private array $presentations;
public function __construct(private EntityTypeManagerInterface $entityTypeManager) {
}
@ -24,6 +22,7 @@ final class PresentationCounter {
$nodeIds = $query->execute();
/** @var Presentation[] */
$presentations = $nodeStorage->loadMultiple($nodeIds);
return array_reduce(