Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.quality.empty-catch

Empty catch block. The exception is silently discarded, which hides failures and makes bugs hard to diagnose.

Last updated:

Suite: Code quality

php

Empty catch block. The exception is silently discarded, which hides failures and makes bugs hard to diagnose.

Category: QUALITY · Engine rule severity: INFO

How to fix it

Handle, log or rethrow the exception. If ignoring it is intentional, add a comment explaining why.

References

Source: packages/engine/rules/quality/php.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.