mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
BigInteger\PHP: self::$primes -> static::$primes
This commit is contained in:
parent
a59d046c9d
commit
7a2f2e8e6b
@ -1272,7 +1272,7 @@ abstract class PHP extends Engine
|
|||||||
}
|
}
|
||||||
|
|
||||||
$value = $this->value;
|
$value = $this->value;
|
||||||
foreach (self::$primes as $prime) {
|
foreach (static::$primes as $prime) {
|
||||||
list(, $r) = self::divide_digit($value, $prime);
|
list(, $r) = self::divide_digit($value, $prime);
|
||||||
if (!$r) {
|
if (!$r) {
|
||||||
return count($value) == 1 && $value[0] == $prime;
|
return count($value) == 1 && $value[0] == $prime;
|
||||||
|
Loading…
Reference in New Issue
Block a user