The Wire · Showcase
SURVEYOR FIXES ELOQUENT TYPE RESOLUTION, CLOUD-CLI SHIPS COMMAND HISTORY
By RepoJournal · Filed · About Laravel
Surveyor patches critical type inference bugs that were collapsing Eloquent builder chains to `mixed`, while cloud-cli lands autocomplete and command history for faster production debugging.
Two type resolution bugs in Surveyor are getting fixed. First, the reflector now follows `@mixin` annotations when a method isn't found directly on a class, so Eloquent's `count()` method (defined on the mixed-in `Query\Builder`) now correctly resolves to `int` instead of `mixed` [1]. Second, methods named after PHP keywords like `string` or `bool` were getting lost in type normalization; the fix treats them as literal identifiers instead, matching how static calls already work [2]. Over in framework, two major scheduling improvements landed: you can now pass the `Event` object itself into scheduled callbacks [3], and lifecycle hooks like `before`, `after`, and `onSuccess` now work directly on `Schedule::group()` instead of having to be chained on individual commands [4]. This solves a real pain point where teams had to add identical callbacks to dozens of commands one by one. Cloud-cli v0.4.0 ships two quality-of-life features: `command:run` now autocompletes artisan commands by inspecting the local environment [7], and a new `--history` flag surfaces your 10 most recent commands in a select prompt [6]. Minor fix in framework: delimiter tests now skip on Windows where `?` isn't a valid filename [5].
Action items
- → Update Surveyor to get Eloquent type resolution fixes in your IDE laravel/surveyor [plan]
- → Refactor grouped scheduled commands to use new Schedule::group() lifecycle hooks laravel/framework [monitor]
- → Upgrade cloud-cli to v0.4.0+ for command history and autocomplete in production laravel/cloud-cli [plan]
References
- [1] Fix Eloquent builder method resolution via @mixin and integer range types ↗ laravel/surveyor
- [2] Fix method resolution for names that are PHP type keywords ↗ laravel/surveyor
- [3] [13.x] Allow passing scheduled `Event` in callbacks ↗ laravel/framework
- [4] [13.x] Allow lifecycle and output callbacks on Schedule::group() (#60133) laravel/framework
- [5] [13.x] Skip delimiter filesystem tests on Windows ↗ laravel/framework
- [6] v0.4.0 ↗ laravel/cloud-cli
- [7] Autocomplete artisan commands in command:run prompt ↗ laravel/cloud-cli
FAQ
- What changed in Laravel on May 17, 2026?
- Surveyor patches critical type inference bugs that were collapsing Eloquent builder chains to `mixed`, while cloud-cli lands autocomplete and command history for faster production debugging.
- What should Laravel teams do about it?
- Update Surveyor to get Eloquent type resolution fixes in your IDE • Refactor grouped scheduled commands to use new Schedule::group() lifecycle hooks • Upgrade cloud-cli to v0.4.0+ for command history and autocomplete in production
- Which Laravel repositories shipped on May 17, 2026?
- laravel/surveyor, laravel/framework, laravel/cloud-cli