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 72b9205 commit 93a4f02Copy full SHA for 93a4f02
src/Rule/Nette/RethrowExceptionRule.php
@@ -74,12 +74,13 @@ public function processNode(Node $node, Scope $scope): array
74
}
75
if (
76
count($catch->stmts) === 1
77
- && $catch->stmts[0] instanceof Node\Stmt\Throw_
78
- && $catch->stmts[0]->expr instanceof Variable
+ && $catch->stmts[0] instanceof Node\Stmt\Expression
+ && $catch->stmts[0]->expr instanceof Node\Expr\Throw_
79
+ && $catch->stmts[0]->expr->expr instanceof Variable
80
&& $catch->var !== null
81
&& is_string($catch->var->name)
- && is_string($catch->stmts[0]->expr->name)
82
- && $catch->var->name === $catch->stmts[0]->expr->name
+ && is_string($catch->stmts[0]->expr->expr->name)
83
+ && $catch->var->name === $catch->stmts[0]->expr->expr->name
84
) {
85
continue 2;
86
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments