🔧 PHP 8.2 str_split() fix

This commit is contained in:
smiley
2022-10-05 20:16:47 +02:00
parent 40e8a6ecbc
commit c03aafcf18
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -46,6 +46,10 @@ final class Number extends QRDataModeAbstract{
*/
public static function validateString(string $string):bool{
if($string === ''){
return false;
}
foreach(str_split($string) as $chr){
if(!isset(self::NUMBER_TO_ORD[$chr])){
return false;