Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@platoindebugmode
Copy link
Contributor

This PR updates the Number class to:

  • Correct the return types of parse(), parseInt(), and parseFloat() to include false.
  • Add return types for spell(), ordinal(), and spellOrdinal() methods.
  • Handle false return values from NumberFormatter::format() by falling back to (string) $number.

No breaking changes introduced, only enhances type accuracy and guards against silent false values.

@shaedrich
Copy link
Contributor

Adding a return type hint is a breaking change. Therefore, you should target master

@taylorotwell taylorotwell marked this pull request as draft June 9, 2025 14:09
@platoindebugmode platoindebugmode closed this by deleting the head repository Sep 20, 2025
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.