File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -505,6 +505,7 @@ public function dataFileAsserts(): iterable
505
505
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/array_map_multiple.php ' );
506
506
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/range-numeric-string.php ' );
507
507
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/missing-closure-native-return-typehint.php ' );
508
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4741.php ' );
508
509
}
509
510
510
511
/**
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Bug4741 ;
4
+
5
+ use function PHPStan \Testing \assertType ;
6
+
7
+ class Foo
8
+ {
9
+
10
+ public function isAnObject ($ object ): void {
11
+ $ class = get_class ($ object );
12
+ assertType ('class-string|false ' , $ class );
13
+ }
14
+
15
+ }
You can’t perform that action at this time.
0 commit comments