From de2e4662b004c8ce5c83f46b5382102bba5ca441 Mon Sep 17 00:00:00 2001 From: Sokolovskyy Roman Date: Thu, 3 Aug 2017 09:26:46 +0200 Subject: [PATCH] Fixed wrong use of new self(1); --- phpseclib/Math/BigInteger/Engines/PHP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger/Engines/PHP.php b/phpseclib/Math/BigInteger/Engines/PHP.php index 8e448cc0..bee28778 100644 --- a/phpseclib/Math/BigInteger/Engines/PHP.php +++ b/phpseclib/Math/BigInteger/Engines/PHP.php @@ -1314,7 +1314,7 @@ abstract class PHP extends Engine protected function powHelper(PHP $n) { if ($n->compare(static::$zero) == 0) { - return new self(1); + return new static(1); } // n^0 = 1