E0041 reports statements that cannot be reached. It is the unreachable-code member of Phanalist’s bounded formal verification family (E0031-E0043). The family shares a Z3-backed engine that encodes path conditions and values.
return, break, continue, throw, or exitbreak and continue levelscontinue inside switchnever-returning callsswitch or match constructsE0041 shares the model limits, loop bounds, and interprocedural behavior described in E0031. A branch that merely throws is not treated as making the whole following statement unreachable.
rules:
E0041:
php_version: "8.4"
check_unreachable: true
See E0031 for the shared model limits, unknown_policy behavior, and
per-code configuration.