From 9104001b75466b48ec5fe5f03a26d35fae75398b Mon Sep 17 00:00:00 2001 From: Killesreiter Volker Date: Fri, 30 Aug 2024 15:22:16 +0200 Subject: [PATCH] Fix phpstan --- modules/thunder_gqls/src/Wrappers/EntityListResponse.php | 2 +- phpstan-baseline.neon | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/thunder_gqls/src/Wrappers/EntityListResponse.php b/modules/thunder_gqls/src/Wrappers/EntityListResponse.php index bb2dcb4df..6e96a8418 100644 --- a/modules/thunder_gqls/src/Wrappers/EntityListResponse.php +++ b/modules/thunder_gqls/src/Wrappers/EntityListResponse.php @@ -11,7 +11,7 @@ /** * The thunder entity list response class. */ -readonly class EntityListResponse implements EntityListResponseInterface, ContainerInjectionInterface { +class EntityListResponse implements EntityListResponseInterface, ContainerInjectionInterface { /** * The query interface. diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1ddc639a4..652178514 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10,11 +10,6 @@ parameters: count: 1 path: modules/thunder_gqls/src/Plugin/GraphQL/SchemaExtension/ThunderPagesSchemaExtension.php - - - message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#" - count: 1 - path: modules/thunder_gqls/src/Wrappers/EntityListResponse.php - - message: "#^Access to an undefined property Drupal\\\\Tests\\\\thunder_gqls\\\\Kernel\\\\DataProducer\\\\EntityLinksTest\\:\\:\\$node\\.$#" count: 4