diff options
author | MichaelRoosz <michael.roosz@web.de> | 2022-04-25 12:02:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 12:02:49 +0300 |
commit | e7febeb860fef1c9cf45d439c17f280a17327dd4 (patch) | |
tree | 55059dd1f4c77f8b833a2525f2ab556c668e109e /libs | |
parent | 5f376f75af1a166fa8e66fc6843e7e1f30cee4d4 (diff) |
Fix some "Passing null to parameter" warnings (#19135)
* Fix "passing null to parameter" errors
* Fix "passing null to parameter" error
* Fix "passing null to parameter" errors
* Fix "passing null to parameter" error
* Update fix for "passing null to parameter" error
Co-authored-by: Michael Roosz <michael.roosz@check24.de>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/HTML/QuickForm2/Rule/Nonempty.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/HTML/QuickForm2/Rule/Nonempty.php b/libs/HTML/QuickForm2/Rule/Nonempty.php index 2f541c0088..aeb03fc704 100644 --- a/libs/HTML/QuickForm2/Rule/Nonempty.php +++ b/libs/HTML/QuickForm2/Rule/Nonempty.php @@ -93,7 +93,7 @@ class HTML_QuickForm2_Rule_Nonempty extends HTML_QuickForm2_Rule } elseif (is_array($value)) { return count(array_filter($value, 'strlen')) >= $this->getConfig(); } else { - return (bool)strlen($value); + return (bool)strlen($value ?? ''); } } |