Skip to content

Commit

Permalink
Fix php incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Sep 7, 2023
1 parent 3b52bce commit 7d09436
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/N98/Util/Unicode/Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 7d09436

Please sign in to comment.