chore: QA tooling ratchet — PHPStan max + strict rules, Rector Laravel sets, CI gate - #256
Merged
Conversation
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Inspired by https://joeymckenzie.tech/blog/artisanally-laravibing.
PHPStan (config only, no runtime risk)
phpstan/phpstan-strict-rulesandtomasvotruba/type-coverageparseModelCastsMethod: trueso larastan reads the Laravel 11+ stylecasts()methodRector (one commit per set, full suite green after each)
UP_TO_PHP_83→UP_TO_PHP_84, thendeadCode,codeQuality,earlyReturn,typeDeclarations,UP_TO_LARAVEL_130_WITHOUT_ATTRIBUTESprivatization/codingStyle(Laravel magic / fights Pint) andMigrateToSimplifiedAttributeRector(drops the accessor return types larastan uses to type magic properties)queue.failersingleton closure that rector typedarraybut receives theApplicationinstanceCI
rector --dry-runstep in tests.yml (same ratchet philosophy as Pint/PHPStan)squizlabs/php_codesniffer+ phpcs.xml.dist (not in CI, superseded by Pint)Deliberately skipped from the article
Deptrac (layering lives in separate composer packages), Infection (52% coverage base → mutant noise), bleedingEdge.neon (per-release churn).
Verification: 575 tests / 2364 assertions green after every set;
phpstan,pint --test,rector --dry-runall clean at HEAD.Greptile Summary
This PR raises the repository’s static-analysis and automated-refactoring standards while applying the corresponding Laravel 13 and PHP 8.4 transformations throughout the application.
casts()methods and consolidated queue traits.Confidence Score: 5/5
The PR appears safe to merge because no concrete changed-code failure remained after reviewing the framework migrations and behavior-affecting rewrites.
The tooling dependencies, Laravel 13 transformations, queue-trait consolidation, model-cast migrations, and reviewed control-flow rewrites are coordinated, with no accepted runtime, build, authorization, persistence, or security defect.
Important Files Changed
Reviews (1): Last reviewed commit: "chore: import queueable trait and skip g..." | Re-trigger Greptile
Context used (5)