File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ Changes that have landed in master but are not yet released.
44-  refac: Renames notification-center methods. ([ #120  ] ( https://github.com/optimizely/php-sdk/pull/120 ) )
55-  fix: Validate Inputs for activate/track/getVariation. ([ #105  ] ( https://github.com/optimizely/php-sdk/pull/105 ) )
66
7+ ## 2.2.1  
8+ November 14th, 2018
9+ 
10+ ### Bug fixes  
11+ -  fix(generateBucketValue): Avoid negative bucket number for PHP x86. ([ #137  ] ( https://github.com/optimizely/php-sdk/pull/137 ) )
12+ -  fix(phpdoc-notification-callback): Fixes phpdoc primitive type of notification-callback. ([ #135  ] ( https://github.com/optimizely/php-sdk/pull/135 ) )
13+ 
14+ 
715## 2.2.0  
816October 29th, 2018
917
Original file line number Diff line number Diff line change @@ -86,7 +86,13 @@ protected function generateBucketValue($bucketingKey)
8686    {
8787        $ hashCode$ this generateHashCode ($ bucketingKey
8888        $ ratio$ hashCode$ MAX_HASH_VALUE 
89-         return  intval (floor ($ ratio$ MAX_TRAFFIC_VALUE 
89+         $ bucketValintval (floor ($ ratio$ MAX_TRAFFIC_VALUE 
90+ 
91+         if  ($ bucketVal0 ) {
92+             $ bucketVal10000 ;
93+         }
94+ 
95+         return  $ bucketVal
9096    }
9197
9298    /** 
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class EventBuilder
3737    /** 
3838     * @const string Version of the Optimizely PHP SDK. 
3939     */ 
40-     const  SDK_VERSION  = '2.2.0  ' ;
40+     const  SDK_VERSION  = '2.2.1  ' ;
4141
4242    /** 
4343     * @var string URL to send event to. 
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function getNotifications()
5959     * Adds a notification callback for a notification type to the notification center 
6060     * 
6161     * @param string $notification_type     One of the constants defined in NotificationType 
62-      * @param string  $notification_callback A valid PHP callback 
62+      * @param callable  $notification_callback A valid PHP callback 
6363     * 
6464     * @return null  Given invalid notification type/callback 
6565     *         -1    Given callback has been already added 
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function setUp()
7373                ]],
7474                'revision '  => '15 ' ,
7575                'client_name '  => 'php-sdk ' ,
76-                 'client_version '  => '2.2.0  ' ,
76+                 'client_version '  => '2.2.1  ' ,
7777                'anonymize_ip ' => false ,
7878            ];
7979        $ this expectedEventHttpVerb  = 'POST ' ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments