From 7afbdecd331aeb02451bccdce35324c19664e998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tvrd=C3=ADk?= <_github.com@jantvrdik.com> Date: Mon, 8 Apr 2024 16:20:52 +0200 Subject: [PATCH] DirectoryListing: mark T parameter as covariant --- src/DirectoryListing.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DirectoryListing.php b/src/DirectoryListing.php index 7b1a1f589..a1e8d837f 100644 --- a/src/DirectoryListing.php +++ b/src/DirectoryListing.php @@ -10,7 +10,8 @@ use Traversable; /** - * @template T + * @template-covariant T of StorageAttributes + * @implements IteratorAggregate */ class DirectoryListing implements IteratorAggregate { @@ -40,7 +41,7 @@ public function filter(callable $filter): DirectoryListing } /** - * @template R + * @template R of StorageAttributes * * @param callable(T): R $mapper *