File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
tests/PHPStan/Rules/Methods Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -3646,6 +3646,16 @@ public function testBug5642(): void
3646
3646
]);
3647
3647
}
3648
3648
3649
+ public function testBug13267 (): void
3650
+ {
3651
+ $ this ->checkThisOnly = false ;
3652
+ $ this ->checkNullables = false ;
3653
+ $ this ->checkUnionTypes = true ;
3654
+ $ this ->checkExplicitMixed = false ;
3655
+
3656
+ $ this ->analyse ([__DIR__ . '/data/bug-13267.php ' ], []);
3657
+ }
3658
+
3649
3659
public function testBug3396 (): void
3650
3660
{
3651
3661
$ this ->checkThisOnly = false ;
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types = 1 );
2
+
3
+ namespace Bug13267 ;
4
+
5
+ class ExampleException extends \ErrorException {
6
+ public function __construct (\Throwable $ e ) {
7
+ parent ::__construct (
8
+ $ e ->getMessage (),
9
+ $ e ->getCode (),
10
+ 1 ,
11
+ $ e ->getFile (),
12
+ $ e ->getLine (),
13
+ $ e ->getPrevious (),
14
+ );
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments