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

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            abdy Abdy Franco
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              20/Jun/23

              Agile