tomasvotruba/cognitive-complexity
A PHPStan extension that measures cognitive complexity of functions and classes, flagging code that's hard to read. Also detects complex constructor dependency trees in services like controllers and rules.
phpstan.neon include), with no database, queue, or service-provider footprint.phpstan.neon (or relied on it as a gate) will lose coverage silently or error on an unknown rule identifier. Treat this as a scope reduction of the tool's value proposition, not just a version bump.phpstan.neon reference to it, or any baseline entry generated by it, must be cleaned up. Risk of silent loss of a quality gate if removal is not paired with a config audit.phpstan-baseline.neon) and inline @phpstan-ignore annotations generated under 1.2.x are unreliable and should be regenerated rather than patched.max-complexity=15) no longer means the same thing. Alert volume will shift in both directions immediately after upgrade.phpstan-baseline.neon and re-running the initial complexity survey after upgrade, and on what branch?max-complexity value still represent "maintainable" for this team? Who signs off on the new number?phpstan/extension-installer remains an option where PHPStan is not yet adopted.phpstan.neon / phpstan.neon.dist files for references to the removed dependency-tree rule; delete those entries and any baseline lines they produced.^1.3 in composer.json dev dependencies on a dedicated branch.phpstan-baseline.neon rather than hand-editing it. Do not carry forward 1.2.x suppressions.@phpstan-ignore annotations; the release notes explicitly document error-ignoring behavior, so review that guidance before re-adding suppressions.max-complexity value from the regenerated distribution, not from the old number.phpstan.neon in the portfolio.@phpstan-ignore usage should be reviewed against the newly documented error-ignoring behavior; expect some annotations to become redundant or malformed.How can I help you explore Laravel packages today?