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

Str: Fix passing null to explode() PHP 8.1 warnings #37

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

yhabteab
Copy link
Member

@yhabteab yhabteab commented Nov 7, 2022

No description provided.

@cla-bot cla-bot bot added the cla/signed label Nov 7, 2022
@yhabteab yhabteab requested a review from nilmerg November 7, 2022 12:11
src/Str.php Show resolved Hide resolved
@nilmerg
Copy link
Member

nilmerg commented Nov 7, 2022

The entire class is affected by this. Please also adjust the remaining methods.

@yhabteab yhabteab requested a review from nilmerg November 7, 2022 12:59
src/Str.php Outdated Show resolved Hide resolved
src/Str.php Outdated Show resolved Hide resolved
@yhabteab yhabteab force-pushed the fix-php81-warnings branch 2 times, most recently from 0c4bdc6 to 2508ca1 Compare November 7, 2022 13:46
@yhabteab yhabteab requested a review from nilmerg November 7, 2022 13:46
@lippserd
Copy link
Member

lippserd commented Nov 7, 2022

Why don't we add string to function parameters where necessary?

@yhabteab yhabteab force-pushed the fix-php81-warnings branch 2 times, most recently from 9f8238f to cbd3485 Compare November 7, 2022 14:39
@yhabteab yhabteab requested a review from lippserd November 7, 2022 14:40
@nilmerg
Copy link
Member

nilmerg commented Nov 7, 2022

Why don't we add string to function parameters where necessary?

Well, since this is a utility class (not specifically meant to be sub-classed), this would be indeed a possibility!

@nilmerg nilmerg added the bug Something isn't working label Nov 8, 2022
@nilmerg nilmerg added this to the v0.12.1 milestone Nov 8, 2022
src/Str.php Outdated Show resolved Hide resolved
src/Str.php Outdated Show resolved Hide resolved
@yhabteab yhabteab requested a review from nilmerg November 25, 2022 14:25
@nilmerg nilmerg merged commit be75213 into master Nov 25, 2022
@nilmerg nilmerg deleted the fix-php81-warnings branch November 25, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants