Skip to content

Commit b675437

Browse files
committed
Fix
1 parent dc793e9 commit b675437

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

tests/PHPStan/Rules/Classes/data/class-string.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@
22

33
namespace ClassString;
44

5-
class A {
6-
public function __construct(public int $i) {}
5+
class A
6+
{
7+
public function __construct(public int $i)
8+
{
9+
}
710
}
811

912
class HelloWorld
1013
{
11-
/**
12-
* @return class-string<A>
13-
*/
14-
public static function sayHelloBug(): string
15-
{
16-
return A::class;
17-
}
14+
/**
15+
* @return class-string<A>
16+
*/
17+
public static function sayHelloBug(): string
18+
{
19+
return A::class;
20+
}
1821
}
1922

2023
$classString = HelloWorld::sayHelloBug();

0 commit comments

Comments
 (0)