File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -380,6 +380,7 @@ public function dataFileAsserts(): iterable
380
380
381
381
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/type-aliases.php ' );
382
382
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4650.php ' );
383
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-2906.php ' );
383
384
}
384
385
385
386
/**
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Bug2906 ;
4
+
5
+
6
+ use function PHPStan \Testing \assertNativeType ;
7
+ use function PHPStan \Testing \assertType ;
8
+
9
+ class HelloWorld
10
+ {
11
+ /**
12
+ * @param string $thing
13
+ * @param mixed $value
14
+ */
15
+ public function sayHello ($ thing , $ value ): void
16
+ {
17
+ assertType ('false ' , $ thing === null );
18
+ assertNativeType ('bool ' , $ thing === null );
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments