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:
parent
b38530ed0d
commit
1cb7dd9d72
@ -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 {}
|
||||
'],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user