1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Initial commit, issue-10490

Reproduce failure in unit test
This commit is contained in:
Sam L 2023-12-24 12:02:37 -05:00
parent b38530ed0d
commit 1cb7dd9d72

View File

@ -99,6 +99,24 @@ class DeprecatedAnnotationTest extends TestCase
public $property;
}
'],
'suppressDeprecatedClassOnTemplateType' => [
'code' => '<?php
/**
* @deprecated
*/
class TheDeprecatedClass {}
/**
* @template T
*/
class TheParentClass {}
/**
* @extends TheParentClass<TheDeprecatedClass>
* @psalm-suppress DeprecatedClass
*/
class TheChildClass extends TheParentClass {}
'],
];
}