Skip to content

[7.x] Fix Stringable isEmpty#32447

Merged
taylorotwell merged 2 commits intolaravel:7.xfrom
mvdnbrk:fix-stringable
Apr 20, 2020
Merged

[7.x] Fix Stringable isEmpty#32447
taylorotwell merged 2 commits intolaravel:7.xfrom
mvdnbrk:fix-stringable

Conversation

@mvdnbrk
Copy link
Contributor

@mvdnbrk mvdnbrk commented Apr 19, 2020

The Stringable class isEmpty method uses the empty function.

As a result a string of '0' will be evaluated as empty.
This PR fixes this. Added a test as well.

@taylorotwell taylorotwell merged commit c8eef62 into laravel:7.x Apr 20, 2020
@mvdnbrk mvdnbrk deleted the fix-stringable branch April 21, 2020 11:24
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