From 7d09436e8af6460d97124643591610d19ad7a99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCnch?= Date: Thu, 7 Sep 2023 10:17:58 +0200 Subject: [PATCH] Fix php incompatibility --- src/N98/Util/Unicode/Charset.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/N98/Util/Unicode/Charset.php b/src/N98/Util/Unicode/Charset.php index 50c4aa248..3b5eaaee2 100644 --- a/src/N98/Util/Unicode/Charset.php +++ b/src/N98/Util/Unicode/Charset.php @@ -2,26 +2,35 @@ namespace N98\Util\Unicode; +/** + * Class Charset + * @package N98\Util\Unicode + */ class Charset { /** * @var int */ - public const UNICODE_CHECKMARK_CHAR = 10004; + const UNICODE_CHECKMARK_CHAR = 10004; /** * @var int */ - public const UNICODE_CROSS_CHAR = 10006; + const UNICODE_CROSS_CHAR = 10006; + + /** + * @var int + */ + const UNICODE_WHITE_SQUARE_CHAR = 9633; /** * @param int|array $codes * @return string */ - public static function convertInteger($codes) + public static function convertInteger(...$codes) { - if (is_scalar($codes)) { - $codes = func_get_args(); + if (count($codes) === 1 && is_array($codes[0])) { + $codes = $codes[0]; } $str = '';