Details
-
Type:
Sub-task
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.7.1
-
Component/s: None
-
Labels:None
Description
Error:
strlen(): Argument #1 ($string) must be of type string, array given
Affected Files:
- /vendors/minphp/input/src/Input.php (Line 72)
Possible solution:
public static function isEmpty($str) { if (!is_string($str)) { return empty($str); } if (!isset($str) || strlen($str) == 0) { return true; } return false; }
Error:
strlen(): Passing null to parameter #1 ($string) of type string is deprecated
Affected Files:
- /vendors/minphp/input/src/Input.php (Line 234)
Possible solution:
return strlen($str ?? '') <= $length;
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 5.7.0-b1 [ 11737 ] |
Description |
*Error:*
{noformat} strlen(): Argument #1 ($string) must be of type string, array given {noformat} *Affected Files:* - /vendors/minphp/input/src/Input.php _(Line 72)_ *Possible solution:* {code:java} public static function isEmpty($str) { if (!is_string($str)) { return empty($str); } if (!isset($str) || strlen($str) == 0) { return true; } return false; } {code} |
*Error:*
{noformat} strlen(): Argument #1 ($string) must be of type string, array given {noformat} *Affected Files:* - /vendors/minphp/input/src/Input.php _(Line 72)_ *Possible solution:* {code:java} public static function isEmpty($str) { if (!is_string($str)) { return empty($str); } if (!isset($str) || strlen($str) == 0) { return true; } return false; } {code} ---- *Error:* {noformat} strlen(): Passing null to parameter #1 ($string) of type string is deprecated {noformat} *Affected Files:* - /vendors/minphp/input/src/Input.php _(Line 234)_ *Possible solution:* {code:java} return strlen($str ?? '') <= $length; {code} |
Fix Version/s | 5.7.0 [ 11800 ] | |
Fix Version/s | 5.7.0-b1 [ 11737 ] |
Fix Version/s | 5.8.0-b1 [ 11742 ] | |
Fix Version/s | 5.7.0 [ 11800 ] |
Assignee | Jonathan Reissmueller [ jonathan ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Fix Version/s | 5.7.1 [ 11801 ] | |
Fix Version/s | 5.8.0-b1 [ 11742 ] |
Status | In Review [ 5 ] | Closed [ 6 ] |