v4.14.11
Collection type inference for arbitrary inputs, and partial Laravel boots now surface instead of failing silently.
This release bumps min supported Laravel minor versions:
- ^12.4 to ^12.14
- ^13.0 to ^13.3
Features
- Infer
collect(),Collection::make(), andLazyCollection::make()return types for arbitrary inputs, not just arrays (#1225)
collect('hello');
-// InvalidArgument (before): string wasn't Arrayable|iterable|null
+// now infers: Collection<0, 'hello'>
collect(BackedSuit::Hearts);
-// InvalidArgument (before): enum cases weren't accepted either
+// now infers: Collection<0, BackedSuit>
collect(null);
-// before: Collection<array-key, mixed> (unbound fallback)
+// now infers: Collection<never, never>Fixes
- Surface swallowed
bootstrap()failures: a partial Laravel boot now emits a warning by default, and fails the run underfailOnInternalError(#1226)
Full Changelog: v4.14.10...v4.14.11