Skip to content

v4.14.4

Latest

Choose a tag to compare

@alies-dev alies-dev released this 23 Jun 11:20
b838d57

This patch sharpens type inference across collections, the console, and the Date facade.

Features

  • Narrow Command::hasArgument()/hasOption() to literal bool, and fix hasOption() shortcut/negation semantics (#1161)
  • Resolve the configured date class for Date facade static calls (#1157)
  • Infer the named-argument object shape returned by the literal() helper (#1160)
  • Narrow config()->collection() to Collection<key, value> (#1159)
  • Narrow random() return type on Enumerable and LazyCollection (#1152)

Fixes

  • Allow a null option shortcut in Command::getOptions() (#1166)
  • Type the Model::loadCount() constraint closure as Builder (#1164)
  • Allow null values in the __() $replace parameter (#1151)
  • Stop the guard taint warning for SessionGuard::hashPasswordForCookie() on Laravel 11 (#1146)

Full Changelog: v4.14.2...v4.14.4