Skip to content

Commit 51907de

Browse files
committed
:octocat: phan on CI
1 parent aa83d84 commit 51907de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function random(array $array):mixed{
8282
}
8383

8484
if(PHP_VERSION_ID >= 80200){
85-
/** @phan-suppress-next-line PhanParamTooManyInternal (false positive) */
85+
/** @phan-suppress-next-line PhanUndeclaredClassMethod, PhanParamTooManyInternal (false positive) */
8686
$key = (new \Random\Randomizer(new \Random\Engine\Secure))->pickArrayKeys($array, 1)[0];
8787
}
8888
else{

src/Crypto.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static function randomString(int $length, string $keyspace = self::ASCII_
7676
// use the Randomizer if available
7777
// https://github.com/phpstan/phpstan/issues/7843
7878
if(PHP_VERSION_ID >= 80300){
79+
/** @phan-suppress-next-line PhanUndeclaredClassMethod */
7980
return (new \Random\Randomizer(new \Random\Engine\Secure))->getBytesFromString($keyspace, $length);
8081
}
8182

0 commit comments

Comments
 (0)