BigInteger\PHP: self::$primes -> static::$primes

This commit is contained in:
terrafrost 2017-10-21 12:32:56 -05:00
parent a59d046c9d
commit 7a2f2e8e6b

View File

@ -1272,7 +1272,7 @@ abstract class PHP extends Engine
}
$value = $this->value;
foreach (self::$primes as $prime) {
foreach (static::$primes as $prime) {
list(, $r) = self::divide_digit($value, $prime);
if (!$r) {
return count($value) == 1 && $value[0] == $prime;