File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
tests/PHPStan/Rules/Methods Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -885,6 +885,14 @@ public function testDynamicCall(): void
885885 ]);
886886 }
887887
888+ public function testBug13267 (): void
889+ {
890+ $ this ->checkThisOnly = false ;
891+ $ this ->checkExplicitMixed = false ;
892+
893+ $ this ->analyse ([__DIR__ . '/data/bug-13267.php ' ], []);
894+ }
895+
888896 public function testRestrictedInternalClassNameUsage (): void
889897 {
890898 $ 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