File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1401,6 +1401,7 @@ public function dataFileAsserts(): iterable
1401
1401
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-7291.php ' );
1402
1402
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-10264.php ' );
1403
1403
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/conditional-vars.php ' );
1404
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5961.php ' );
1404
1405
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-10189.php ' );
1405
1406
}
1406
1407
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Bug5961 ;
4
+
5
+ use function PHPStan \Testing \assertType ;
6
+
7
+ function doFoo () {
8
+ assertType ('"Foo \r\n Bar" ' , "Foo \r\n Bar " );
9
+ assertType ('"Foo \n Bar" ' , "Foo \n Bar " );
10
+ assertType ('"Foo \r Bar" ' , "Foo \r Bar " );
11
+ }
You can’t perform that action at this time.
0 commit comments