Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#1470 from denixport/fe…
Browse files Browse the repository at this point in the history
…ature/math-biginteger

Math\BigInteger refactoring
  • Loading branch information
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Value/BigInteger.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

namespace Zend\XmlRpc\Value;

use Zend\Math\BigInteger\BigInteger as BigIntegerMath;

/**
* @category Zend
* @package Zend_XmlRpc
Expand All @@ -35,15 +37,14 @@ class BigInteger extends Integer
*/
public function __construct($value)
{
$integer = new \Zend\Math\BigInteger();
$this->_value = $integer->init($value);
$this->_type = self::XMLRPC_TYPE_I8;
$this->_value = BigIntegerMath::factory()->init($value, 10);
$this->_type = self::XMLRPC_TYPE_I8;
}

/**
* Return bigint value object
*
* @return \Zend\Math\BigInteger
* @return string
*/
public function getValue()
{
Expand Down

0 comments on commit cf88eec

Please sign in to comment.