Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the purpose to support null value in startsWith? #42

Open
xepozz opened this issue Sep 16, 2020 · 3 comments
Open

What's the purpose to support null value in startsWith? #42

xepozz opened this issue Sep 16, 2020 · 3 comments
Labels
status:ready for adoption Feel free to implement this issue.
Milestone

Comments

@xepozz
Copy link
Contributor

xepozz commented Sep 16, 2020

What's the purpose to support null value in startsWith?

@samdark
Copy link
Member

samdark commented Sep 17, 2020

Originally it was made so parameter could be checked for it without checking for null.

@xepozz
Copy link
Contributor Author

xepozz commented Sep 18, 2020

This may be ambiguous behavior in user code. If you need to allow check nulls then just do (string) $argument

@samdark samdark added this to the 2.0.0 milestone Sep 19, 2020
@samdark samdark added status:ready for adoption Feel free to implement this issue. and removed status:under discussion labels Sep 19, 2020
@samdark
Copy link
Member

samdark commented Sep 19, 2020

Could be adjusted in the next major version.

@samdark samdark removed this from the 2.0.0 milestone Feb 10, 2021
@vjik vjik added this to the 3.0 milestone Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue.
Projects
None yet
Development

No branches or pull requests

4 participants