Skip to content

Conversation

@crynobone
Copy link
Member

  • Reduce enum_value() usage on Illuminate\Support\Js to only when $data is instance of UnitEnum.
  • enum_value() should always return $value unless $default is set other than null.

fixes #53205

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@crynobone crynobone marked this pull request as ready for review October 17, 2024 23:08
@taylorotwell taylorotwell merged commit f7e2fab into 11.x Oct 18, 2024
34 checks passed
@taylorotwell taylorotwell deleted the fixes-53205 branch October 18, 2024 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Js::from() returns null when passed an empty collection

3 participants