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

Commit

Permalink
Merge branch 'feature/crypt' of https://github.com/ezimuel/zf2 into f…
Browse files Browse the repository at this point in the history
…eature/zend_crypt
  • Loading branch information
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis/tested-components
Expand Up @@ -29,6 +29,7 @@ Zend/Locale
Zend/Log
Zend/Mail
Zend/Markup
Zend/Math
Zend/Measure
Zend/Memory
Zend/Mime
Expand Down
2 changes: 1 addition & 1 deletion src/Server.php
Expand Up @@ -97,7 +97,7 @@ class Server extends AbstractServer
'i4' => 'i4',
'int' => 'int',
'integer' => 'int',
'Zend\Crypt\Math\BigInteger' => 'i8',
'Zend\Math\BigInteger' => 'i8',
'i8' => 'i8',
'ex:i8' => 'i8',
'double' => 'double',
Expand Down
2 changes: 1 addition & 1 deletion src/Value.php
Expand Up @@ -256,7 +256,7 @@ protected static function _phpVarToNativeXmlRpc($value)
return $value;
}

if ($value instanceof \Zend\Crypt\Math\BigInteger) {
if ($value instanceof \Zend\Math\BigInteger) {
return new Value\BigInteger($value);
}

Expand Down
6 changes: 3 additions & 3 deletions src/Value/BigInteger.php
Expand Up @@ -31,7 +31,7 @@
class BigInteger extends Integer
{
/**
* @var \Zend\Crypt\Math\BigInteger
* @var \Zend\Math\BigInteger
*/
protected $_integer;

Expand All @@ -40,15 +40,15 @@ class BigInteger extends Integer
*/
public function __construct($value)
{
$this->_integer = new \Zend\Crypt\Math\BigInteger();
$this->_integer = new \Zend\Math\BigInteger();
$this->_value = $this->_integer->init($this->_value);
$this->_type = self::XMLRPC_TYPE_I8;
}

/**
* Return bigint value object
*
* @return \Zend\Crypt\Math\BigInteger
* @return \Zend\Math\BigInteger
*/
public function getValue()
{
Expand Down
2 changes: 1 addition & 1 deletion test/ValueTest.php
Expand Up @@ -22,7 +22,7 @@
namespace ZendTest\XmlRpc;
use Zend\XmlRpc\Value;
use Zend\XmlRpc\Generator\GeneratorInterface as Generator;
use Zend\Crypt\Math\BigInteger;
use Zend\Math\BigInteger;
use Zend\Date;

/**
Expand Down

0 comments on commit ffadf7b

Please sign in to comment.