-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Update BaseStringHelper.php #20099
base: master
Are you sure you want to change the base?
Update BaseStringHelper.php #20099
Conversation
Exception 'TypeError' with message 'count(): Argument yiisoft#1 ($value) must be of type Countable|array, bool given'
PR Summary
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #20099 +/- ##
=======================================
Coverage 48.02% 48.02%
=======================================
Files 445 445
Lines 43889 43892 +3
=======================================
+ Hits 21077 21079 +2
- Misses 22812 22813 +1 ☔ View full report in Codecov by Sentry. |
Looks alright 👍 Would you please add a unit test and a line for CHANGELOG? |
AFAIK |
Please, reject and close this PR. Author has no idea what he is doing. The variable he is trying to run Why end it on the array then? What if it is not an arra,y and not a string? What if I have some words in binary? Please, looks for troubles elsewhere, REJECT THIS PR. |
this is nonsense PR, seriously |
@spzgy you're adding array methods to a STRING HELPER class. Do you keep your milk out on a porch, and your cat is inside a freezer? What are you doing, my man? |
@spzgy As @rob006 mentioned: Please provide an example for the error you get and which PHP version are you using. Related: https://stackoverflow.com/a/59335626 |
Exception 'TypeError' with message 'count(): Argument #1 ($value) must be of type Countable|array, bool given'