Skip to content

v4.14.11

Choose a tag to compare

@github-actions github-actions released this 09 Jul 12:22
6ac7789

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(), and LazyCollection::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 under failOnInternalError (#1226)

Full Changelog: v4.14.10...v4.14.11