Skip to content

Commit

Permalink
applying value function into the $default of transform helper (#52510)
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Aug 19, 2024
1 parent 429f0d2 commit 29e8040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function transform($value, callable $callback, $default = null)
return $default($value);
}

return $default;
return value($default);
}
}

Expand Down

0 comments on commit 29e8040

Please sign in to comment.