Skip to content

Commit fcd9d78

Browse files
author
Matias Melograno
committed
feedback applied
1 parent eaad08a commit fcd9d78

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
7.1.0 (Nov XX, 2021)
2-
- Added `keyHashTags` option for cluster to select one against several passed.
2+
- Added a new option to use when running Redis in cluster mode called `keyHashTags` which receives a list of hashtags from which the SDK will randomly pick one to use on the generated instance.
33

44
7.0.0 (Nov 23, 2021)
55
- BREAKING CHANGE: Removed support from versions older than PHP 7.3.

src/SplitIO/Component/Cache/Storage/Adapter/PRedis.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function isValidSentinelConfig($sentinels, $options)
6767
return true;
6868
}
6969

70-
private function validateKeyHashtTag($keyHashTag)
70+
private function validateKeyHashTag($keyHashTag)
7171
{
7272
if (!is_string($keyHashTag)) {
7373
return array('valid' => false, 'msg' => 'keyHashTag must be string.');
@@ -90,7 +90,7 @@ private function getDefaultKeyHashTag($options)
9090
if (!isset($options['keyHashTag'])) {
9191
return "{SPLITIO}";
9292
}
93-
$validation = $this->validateKeyHashtTag($options['keyHashTag']);
93+
$validation = $this->validateKeyHashTag($options['keyHashTag']);
9494
if (!($validation['valid'])) {
9595
throw new AdapterException($validation['msg']);
9696
}
@@ -116,7 +116,7 @@ private function selectKeyHashTag($options)
116116
$filteredArray = array_filter( // filter to only use string element {X}
117117
$keyHashTags,
118118
function ($value) {
119-
return $this->validateKeyHashtTag($value)['valid'];
119+
return $this->validateKeyHashTag($value)['valid'];
120120
}
121121
);
122122
if (count($filteredArray) == 0) {

src/SplitIO/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
class Version
55
{
6-
const CURRENT = '7.1.0-rc1';
6+
const CURRENT = '7.1.0';
77
}

0 commit comments

Comments
 (0)