diff --git a/src/SplitIO/Component/Cache/SplitCache.php b/src/SplitIO/Component/Cache/SplitCache.php index dadbc767..522a53a1 100644 --- a/src/SplitIO/Component/Cache/SplitCache.php +++ b/src/SplitIO/Component/Cache/SplitCache.php @@ -59,7 +59,9 @@ public function getSplit($splitName) public function getSplits($splitNames) { $cache = Di::getCache(); - $cacheItems = $cache->fetchMany(array_map('self::getCacheKeyForSplit', $splitNames)); + $cacheItems = $cache->fetchMany(array_map([ + self::class, 'getCacheKeyForSplit' + ], $splitNames)); $toReturn = array(); foreach ($cacheItems as $key => $value) { $toReturn[self::getSplitNameFromCacheKey($key)] = $value; @@ -74,7 +76,7 @@ public function getSplitNames() { $cache = Di::getCache(); $splitKeys = $cache->getKeys(self::getCacheKeySearchPattern()); - return array_map('self::getSplitNameFromCacheKey', $splitKeys); + return array_map([self::class, 'getSplitNameFromCacheKey'], $splitKeys); } /** diff --git a/src/SplitIO/Grammar/Condition/Matcher/ContainsString.php b/src/SplitIO/Grammar/Condition/Matcher/ContainsString.php index 581856d9..1d08a8b0 100644 --- a/src/SplitIO/Grammar/Condition/Matcher/ContainsString.php +++ b/src/SplitIO/Grammar/Condition/Matcher/ContainsString.php @@ -6,7 +6,7 @@ class ContainsString extends AbstractMatcher { - protected $ContainsStringMatcherData = null; + private $containsStringMatcherData = null; public function __construct($data, $negate = false, $attribute = null) { diff --git a/src/SplitIO/Sdk/Client.php b/src/SplitIO/Sdk/Client.php index 1867fb90..bcc9463e 100644 --- a/src/SplitIO/Sdk/Client.php +++ b/src/SplitIO/Sdk/Client.php @@ -50,7 +50,7 @@ public function __construct($options = array()) * @param $featureFlag * @param $treatment * @param string $label - * @param null $time + * @param $time * @param int $changeNumber * @param string $bucketingKey * diff --git a/src/SplitIO/Sdk/Events/EventDTO.php b/src/SplitIO/Sdk/Events/EventDTO.php index dcaaf7c3..d78da5ad 100644 --- a/src/SplitIO/Sdk/Events/EventDTO.php +++ b/src/SplitIO/Sdk/Events/EventDTO.php @@ -10,6 +10,7 @@ class EventDTO private $eventTypeId; private $value; private $timestamp; + private $properties; public function __construct($key, $trafficTypeName, $eventTypeId, $value, $properties) { diff --git a/src/SplitIO/Sdk/Manager/SplitManager.php b/src/SplitIO/Sdk/Manager/SplitManager.php index 2acefb2d..4a755eaf 100644 --- a/src/SplitIO/Sdk/Manager/SplitManager.php +++ b/src/SplitIO/Sdk/Manager/SplitManager.php @@ -22,7 +22,7 @@ public function splits() { $cache = new SplitCache(); $rawSplits = $cache->getAllSplits(); - return array_map('self::parseSplitView', $rawSplits); + return array_map([self::class, 'parseSplitView'], $rawSplits); } /**