From 222a66cdbf67f2ae367b251ed56acda53a3d8286 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sat, 23 Mar 2024 10:54:53 +0100 Subject: [PATCH] Use TrinaryLogic::describe() in test --- .../Reflection/Constant/RuntimeConstantReflectionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php index 74345a153c..77d575716e 100644 --- a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php +++ b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php @@ -51,7 +51,7 @@ public function testDeprecatedConstants(Name $constName, TrinaryLogic $isDepreca $reflectionProvider = $this->createReflectionProvider(); $this->assertTrue($reflectionProvider->hasConstant($constName, null)); - $this->assertSame($isDeprecated, $reflectionProvider->getConstant($constName, null)->isDeprecated()); + $this->assertSame($isDeprecated->describe(), $reflectionProvider->getConstant($constName, null)->isDeprecated()->describe()); $this->assertSame($deprecationMessage, $reflectionProvider->getConstant($constName, null)->getDeprecatedDescription()); }