Skip to content

Commit b5cf55e

Browse files
authored
Create bug-12660.php
Add test for phpstan/phpstan#12660
1 parent 8f26ef1 commit b5cf55e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug12660;
4+
5+
use function PHPStan\Testing\assertType;
6+
7+
class Integer
8+
{
9+
10+
}
11+
12+
class HelloWorld
13+
{
14+
/**
15+
* @param Integer $integer
16+
*/
17+
public function sayHello($integer): void
18+
{
19+
assertType(Integer::class, $integer);
20+
}
21+
}

0 commit comments

Comments
 (0)