From 1cb7dd9d7277cf630584c13a3a7d165c756de595 Mon Sep 17 00:00:00 2001 From: Sam L Date: Sun, 24 Dec 2023 12:02:37 -0500 Subject: [PATCH] Initial commit, issue-10490 Reproduce failure in unit test --- tests/DeprecatedAnnotationTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/DeprecatedAnnotationTest.php b/tests/DeprecatedAnnotationTest.php index adcf30e5b..0f465bf7c 100644 --- a/tests/DeprecatedAnnotationTest.php +++ b/tests/DeprecatedAnnotationTest.php @@ -99,6 +99,24 @@ class DeprecatedAnnotationTest extends TestCase public $property; } '], + 'suppressDeprecatedClassOnTemplateType' => [ + 'code' => ' + * @psalm-suppress DeprecatedClass + */ + class TheChildClass extends TheParentClass {} + '], ]; }