Skip to content

Commit 7e9cb46

Browse files
Add test
1 parent 613be0f commit 7e9cb46

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/PHPStan/Rules/Methods/data/bug-12739.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ public static function getClassIdentify() : string {
3939
}
4040
}
4141

42+
/**
43+
* @extends ScalarType<uppercase-string>
44+
*/
45+
class MyUpperString extends ScalarType {
46+
public static function getClassIdentify() : string {
47+
return MyUpperString::class;
48+
}
49+
}
50+
4251
/**
4352
* @extends ScalarType<class-string>
4453
*/

0 commit comments

Comments
 (0)