Skip to content

Commit

Permalink
Improved Arrays (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliguyong authored May 30, 2019
1 parent 7e943f9 commit eb7148a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.5.8 - 2019-05-30
- Improved `Arrays`.


## 1.5.7 - 2019-05-29
- Improved `uuid`.

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"danielstjules/stringy": "^3.1",
"mtdowling/jmespath.php": "^2.4",
"adbario/php-dot-notation": "^2.2",
"clagiordano/weblibs-configmanager": "^1.0",
"nette/utils": "^2.3"
"clagiordano/weblibs-configmanager": "^1.0"
},
"require-dev": {
"ext-spl": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/AlibabaCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AlibabaCloud
/**
* Version of the Client
*/
const VERSION = '1.5.7';
const VERSION = '1.5.8';

/**
* This static method can directly call the specific service.
Expand Down
1 change: 1 addition & 0 deletions src/Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function getRequest()
}

/**
* @codeCoverageIgnore
* @return Response
* @deprecated
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Arrays.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @package AlibabaCloud\Client\Support
*/
class Arrays extends \Nette\Utils\Arrays
class Arrays
{

/**
Expand Down
20 changes: 5 additions & 15 deletions tests/Unit/Support/ArraysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,11 @@ public function testMerge()

self::assertEquals(
[
0 => 'abc',
1 => 'a',
2 => 'b'
],
$params
);

$params = Arrays::mergeTree($array1, $array2);

self::assertEquals(
[
1 => 'abc',
0 => 'a'
],
$params
0 => 'abc',
1 => 'a',
2 => 'b'
],
$params
);
}
}

0 comments on commit eb7148a

Please sign in to comment.