1 | <?php |
||
2 | |||
3 | namespace Ocsp\Service; |
||
4 | |||
5 | final class Math |
||
6 | { |
||
7 | private static $bigIntegerClass = ''; |
||
8 | |||
9 | /** |
||
10 | * Set the name of the class for new BigInteger instances |
||
11 | * |
||
12 | * @param string|null $className can be 'phpseclib3\Math\BigInteger' or 'phpseclib\Math\BigInteger'. If an empty string (or NULL) is passed, we'll detect it automatically |
||
13 | */ |
||
14 | public static function setBigIntegerClass($className) |
||
15 | { |
||
16 | self::$bigIntegerClass = (string) $className; |
||
17 | } |
||
18 | |||
19 | 3 | public static function getBigIntegerClass() |
|
20 | { |
||
21 | 3 | if (self::$bigIntegerClass === '') { |
|
22 | 1 | self::$bigIntegerClass = 'phpseclib3\Math\BigInteger'; |
|
23 | 1 | if (!class_exists(self::$bigIntegerClass)) { |
|
24 | self::$bigIntegerClass = 'phpseclib\Math\BigInteger'; |
||
25 | } |
||
26 | } |
||
27 | 3 | return self::$bigIntegerClass; |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string|int|resource|\phpseclib3\Math\BigInteger\Engines\Engine $x |
||
32 | * @param int $base |
||
33 | * |
||
34 | * @return \phpseclib\Math\BigInteger|\phpseclib3\Math\BigInteger |
||
0 ignored issues
–
show
|
|||
35 | */ |
||
36 | 3 | public static function createBigInteger($x, $base = 10) |
|
37 | { |
||
38 | 3 | $class = self::getBigIntegerClass(); |
|
39 | |||
40 | 3 | return new $class($x, $base); |
|
41 | } |
||
42 | } |
||
43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths