-
Notifications
You must be signed in to change notification settings - Fork 509
mb_str_split() / str_split() always returns non-empty-array
#633
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
Changes from all commits
6bbca56
7fefa4e
dbfc9f7
bc3c64f
4a526b1
7036765
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -5880,7 +5880,7 @@ public function dataFunctions(): array | |||||||||||||||||||||||||||||||||||||||
'$gettimeofdayBenevolent', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$strSplitConstantStringWithoutDefinedParameters', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
|
@@ -5904,15 +5904,15 @@ public function dataFunctions(): array | |||||||||||||||||||||||||||||||||||||||
'$strSplitConstantStringWithFailureSplitLength', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$strSplitConstantStringWithInvalidSplitLengthType', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$strSplitConstantStringWithVariableStringAndConstantSplitLength', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interessting.. sometimes a type including braces is produced, and sometimes without There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. phpstan-src/src/Type/UnionType.php Lines 150 to 168 in 119facc
|
||||||||||||||||||||||||||||||||||||||||
'$strSplitConstantStringWithVariableStringAndVariableSplitLength', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
// parse_url | ||||||||||||||||||||||||||||||||||||||||
|
@@ -9674,7 +9674,7 @@ public function dataPhp74Functions(): array | |||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||
return [ | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithoutDefinedParameters', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
|
@@ -9698,15 +9698,15 @@ public function dataPhp74Functions(): array | |||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithFailureSplitLength', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithInvalidSplitLengthType', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndConstantSplitLength', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndVariableSplitLength', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
|
@@ -9718,7 +9718,7 @@ public function dataPhp74Functions(): array | |||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithOneSplitLengthAndInvalidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithOneSplitLengthAndVariableEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
|
@@ -9730,7 +9730,7 @@ public function dataPhp74Functions(): array | |||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithGreaterSplitLengthThanStringLengthAndInvalidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithGreaterSplitLengthThanStringLengthAndVariableEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
|
@@ -9746,15 +9746,15 @@ public function dataPhp74Functions(): array | |||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithFailureSplitLengthAndVariableEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithInvalidSplitLengthTypeAndValidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
'false', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithInvalidSplitLengthTypeAndInvalidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithInvalidSplitLengthTypeAndVariableEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
|
@@ -9766,19 +9766,19 @@ public function dataPhp74Functions(): array | |||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndConstantSplitLengthAndInvalidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndConstantSplitLengthAndVariableEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndVariableSplitLengthAndValidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
'false', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndVariableSplitLengthAndInvalidEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
[ | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? 'array<int, string>|false' : 'array<int, string>', | ||||||||||||||||||||||||||||||||||||||||
PHP_VERSION_ID < 80000 ? '(array<int, string>&nonEmpty)|false' : 'array<int, string>&nonEmpty', | ||||||||||||||||||||||||||||||||||||||||
'$mbStrSplitConstantStringWithVariableStringAndVariableSplitLengthAndVariableEncoding', | ||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||
]; | ||||||||||||||||||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.