This patch sharpens type inference across collections, the console, and the Date facade.
Features
- Narrow
Command::hasArgument()/hasOption()to literalbool, and fixhasOption()shortcut/negation semantics (#1161) - Resolve the configured date class for
Datefacade static calls (#1157) - Infer the named-argument object shape returned by the
literal()helper (#1160) - Narrow
config()->collection()toCollection<key, value>(#1159) - Narrow
random()return type onEnumerableandLazyCollection(#1152)
Fixes
- Allow a
nulloption shortcut inCommand::getOptions()(#1166) - Type the
Model::loadCount()constraint closure asBuilder(#1164) - Allow
nullvalues in the__()$replaceparameter (#1151) - Stop the guard taint warning for
SessionGuard::hashPasswordForCookie()on Laravel 11 (#1146)
Full Changelog: v4.14.2...v4.14.4