From 82948fe1ea5bfda33125995db16a1e59cc13959f Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sun, 14 Apr 2024 16:54:28 +0200 Subject: [PATCH] Fix phsptan --- src/Collection/AuditedCollection.php | 1 + src/Metadata/MetadataFactory.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Collection/AuditedCollection.php b/src/Collection/AuditedCollection.php index 2e483124..546b8968 100644 --- a/src/Collection/AuditedCollection.php +++ b/src/Collection/AuditedCollection.php @@ -161,6 +161,7 @@ public function containsKey($key) * * @return object * + * @phpstan-param TKey $key * @phpstan-return T */ #[\ReturnTypeWillChange] diff --git a/src/Metadata/MetadataFactory.php b/src/Metadata/MetadataFactory.php index 3cdc6b3c..f9045646 100755 --- a/src/Metadata/MetadataFactory.php +++ b/src/Metadata/MetadataFactory.php @@ -28,6 +28,7 @@ class MetadataFactory public function __construct(array $auditedEntities) { // NEXT_MAJOR: Remove array_filter call. + // @phpstan-ignore-next-line $this->auditedEntities = array_flip(array_filter($auditedEntities)); }