stickee/larastan-config
Opinionated Larastan/PHPStan configuration for Stickee Laravel projects, providing a shared static analysis baseline and sensible rules to keep code quality consistent across applications and packages.
phpstan.neon in ~20–40 lines, or (c) fork it under MIT. This is a cheap, reversible decision — worth deciding once, deliberately, rather than letting each repo drift into its own config.ignoreErrors baseline tells you what the authors decided not to fix. If you adopt it, that suppression list becomes your roadmap: each ignored pattern is a candidate for a "burn-down" epic. Conversely, if the ignore list is large and undocumented, that's a signal the preset is compensating rather than enforcing.Consider it when:
ignoreErrors list line by line.Look elsewhere when:
larastan/larastan and maintain your own phpstan.neon.Caveats to flag in the evaluation: verify the release cadence actually tracks PHPStan/Larastan majors (the advertised last release date looks anomalous and should be confirmed on the repo), and check the ignoreErrors volume and whether it's scoped with paths/counts or written as blanket ignores — blanket ignores quietly convert a strict gate into a decoration.
For executives: This is a small, reversible tooling decision, not a platform bet. It standardizes the automated code-quality check we run on Laravel pull requests, so every team is held to the same bar without each one inventing its own. Cost is near zero — it's a config-only dependency under a permissive license, no runtime footprint, no lock-in — and the downside is bounded because we can fork or replace it in an afternoon. The honest framing: it buys consistency and a starting baseline, not a quality outcome on its own. If we want a defect-escape or review-time number moved, the config is the precondition, and the work is the burn-down of suppressed issues. Recommendation: pilot on one or two services, measure PR friction and findings, then decide whether to standardize or write our own.
For engineering: Treat this as a reviewed starting point, not an authority. It's one vendor's opinion about Larastan levels and ignored errors, with no adoption evidence behind it — so we pin the version, read the ignore list, and take ownership of anything we accept. If more than a handful of overrides are needed, we drop it and maintain our own phpstan.neon against larastan/larastan directly; that path is short and removes a third-party dependency from our upgrade chain. Success criteria for the pilot: CI runtime delta, ratio of true to false positives in the first two weeks, and whether any suppressed pattern hides a class of bug we care about.
How can I help you explore Laravel packages today?