Skip to content

Commit 0a823dc

Browse files
Update fluent() helper (#56900)
* Update fluent() helper * spacing * Update helpers.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 577c9b4 commit 0a823dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Support/helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ function filled($value): bool
172172
/**
173173
* Create a Fluent object from the given value.
174174
*
175-
* @param object|array $value
175+
* @param iterable|object|null $value
176176
*/
177-
function fluent($value): Fluent
177+
function fluent($value = null): Fluent
178178
{
179-
return new Fluent($value);
179+
return new Fluent($value ?? []);
180180
}
181181
}
182182

0 commit comments

Comments
 (0)