From 8b885e5cdbd1509dfbc4ba44c4c078c08eb6b3ae Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Mon, 17 Jun 2024 11:09:49 +0200 Subject: [PATCH] Remove fixed warning from PHPStan config --- .github/phpstan.neon | 2 -- src/Mods/Element/Xml/Element.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/phpstan.neon b/.github/phpstan.neon index 0aeee55..43c0daf 100644 --- a/.github/phpstan.neon +++ b/.github/phpstan.neon @@ -1,7 +1,5 @@ parameters: ignoreErrors: - - '#PHPDoc tag @var for property Slub\\Mods\\Element\\Xml\\Element::\$values with type array\|false is not subtype of native type array\.#' - - '#PHPDoc tag @return with type array\|false is not subtype of native type array\.#' - '#Property Slub\\Mods\\Element\\Specific\\OriginInfo\\Issuance::\$allowedValues is never read, only written\.#' level: 5 paths: diff --git a/src/Mods/Element/Xml/Element.php b/src/Mods/Element/Xml/Element.php index 72f15e0..30a9351 100644 --- a/src/Mods/Element/Xml/Element.php +++ b/src/Mods/Element/Xml/Element.php @@ -22,7 +22,7 @@ class Element /** * @access protected - * @var static[]|false|null + * @var static[]|false|null // @phpstan-ignore-line */ protected array $values;