The Wire · Showcase
Laravel AI Ships Rector Cleanup, Framework Tightens Test Infrastructure
By RepoJournal · Filed · About Laravel
Laravel AI 0.9.1 landed with Rector automation to modernize syntax across the stack, while the framework continues stripping redundant timezone handling from its test suite.
Laravel AI pulled the trigger on Rector integration [1], mirroring laravel/boost's config to automate syntax modernization, type tightening, and dead code removal across src and tests. This is the pattern you want: set Rector once, apply it everywhere, skip only the rules that touch public API. The release also shipped v0.9.1 [2] with tool choice support for Gemini, OpenAI, and Anthropic, plus fixes to attachment provider options and dead DALL-E-3 cleanup. Over in framework, the Carbon cleanup work continues [3], centralizing per-test `date_default_timezone_set('UTC')` calls into `AfterEachTestSubscriber` and swapping redundant Carbon resets. Framework also raised PHPStan to level 2 temporarily [4] to catch docblock typos that confuse static analysis, fixing parameter names in job event handlers [5]. These are the unglamorous moves that keep codebases breathing.
Action items
- → Update to Laravel AI 0.9.1 if you're using Gemini or Anthropic tool calling laravel/ai [plan]
- → Review Rector config in your own Laravel projects if you haven't automated it yet laravel/ai [monitor]
References
- [1] Add Rector and Laravel Rector, apply automated refactors ↗ laravel/ai
- [2] v0.9.1 ↗ laravel/ai
- [3] [13.x] Continue Carbon::setTestNow() cleanup from #60761 ↗ laravel/framework
- [4] [13.x] Fix typos in doc blocks ↗ laravel/framework
- [5] fix: incorrect parameter name in raiseJobAttemptedEvent docblock (#60791) laravel/framework