We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0df696 commit 123f5dcCopy full SHA for 123f5dc
tests/PHPStan/Rules/Exceptions/data/bug-11906.php
@@ -1,13 +1,11 @@
1
-<?php
+<?php declare(strict_types=1);
2
3
namespace Bug11906;
4
5
-declare(strict_types=1);
6
-
7
function func(): void {
8
try {
9
throw new LogicException('test');
10
- } catch (LogicException) {
+ } catch (LogicException $e) {
11
// This catch-block should cause line 9 to not be treated as an exit point
12
} finally {
13
if (getenv('FOO')) {
0 commit comments