Merge pull request #447 from iLexN/dependabot/composer/symplify/easy-… #999
Annotations
4 warnings
PHP 8.2 tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.2 code check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.2 code check:
src/Helper.php#L17
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
private static ?HkidDigitCheck $instance = null;
private static function getInstance() : HkidDigitCheck
{
- return self::$instance ??= new HkidDigitCheck();
+ return self::$instance = new HkidDigitCheck();
}
/**
* Quick Helper check HKID Format eg. CA182361(1).
|
PHP 8.2 code check:
src/HkidDigitCheck.php#L234
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
*/
private function calPart2Remainder(string $part2, int $charSum) : int
{
- $p2 = \array_map(static fn(string $int): int => (int) $int, \str_split($part2));
+ $p2 = \str_split($part2);
return self::MOD_NUM - ($charSum + $p2[0] * self::NUM_WEIGHT_1 + $p2[1] * self::NUM_WEIGHT_2 + $p2[2] * self::NUM_WEIGHT_3 + $p2[3] * self::NUM_WEIGHT_4 + $p2[4] * self::NUM_WEIGHT_5 + $p2[5] * self::NUM_WEIGHT_6) % self::MOD_NUM;
}
/**
|