mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-17 01:05:52 +00:00
🔧 PHP 8.2 str_split() fix
This commit is contained in:
@@ -53,6 +53,10 @@ final class AlphaNum extends QRDataModeAbstract{
|
||||
*/
|
||||
public static function validateString(string $string):bool{
|
||||
|
||||
if($string === ''){
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach(str_split($string) as $chr){
|
||||
if(!isset(self::CHAR_TO_ORD[$chr])){
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user