Skip to content

Commit ffb36bf

Browse files
committed
Regression test for missing property typehint in anonymous class
1 parent 31cfd2d commit ffb36bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PHPStan/Rules/Properties/data/missing-property-typehint.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ class Bar
8080
private $baz;
8181

8282
}
83+
84+
$foo = new class() {
85+
/** @var float */
86+
private $dateTime;
87+
};

0 commit comments

Comments
 (0)