File: BigInteger.php

package info (click to toggle)
php-amqplib 3.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,060 kB
  • sloc: php: 13,145; makefile: 77; sh: 27
file content (15 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace PhpAmqpLib\Helper;

if (class_exists('phpseclib\Math\BigInteger')) {
    class BigInteger extends \phpseclib\Math\BigInteger
    {
    }
} elseif (class_exists('phpseclib3\Math\BigInteger')) {
    class BigInteger extends \phpseclib3\Math\BigInteger
    {
    }
} else {
    throw new \RuntimeException('Cannot find supported phpseclib/phpseclib library');
}