From 44348a0a5d4c53780a5e8daa9d14a3ad93d33ff6 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 10 May 2024 14:42:55 +0200 Subject: [PATCH] fix build --- phpstan-baseline.neon | 5 ----- src/Type/ObjectType.php | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 57004f9318b..448281f1423 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1602,11 +1602,6 @@ parameters: count: 4 path: src/Type/TypeCombinator.php - - - message: "#^Doing instanceof PHPStan\\\\Type\\\\Enum\\\\EnumCaseObjectType is error\\-prone and deprecated\\. Use Type\\:\\:getEnumCases\\(\\) instead\\.$#" - count: 1 - path: src/Type/TypeCombinator.php - - message: "#^Doing instanceof PHPStan\\\\Type\\\\FloatType is error\\-prone and deprecated\\. Use Type\\:\\:isFloat\\(\\) instead\\.$#" count: 1 diff --git a/src/Type/ObjectType.php b/src/Type/ObjectType.php index b1cba7c3a78..2b9c76f882f 100644 --- a/src/Type/ObjectType.php +++ b/src/Type/ObjectType.php @@ -95,9 +95,7 @@ class ObjectType implements TypeWithClassName, SubtractableType private ?string $cachedDescription = null; - /** - * @var array - */ + /** @var array */ private static array $enumCasesCache = []; /** @api */