Skip to content

Commit 4709132

Browse files
committed
Fix deprecated dynamic property in Batch class (#32)
1 parent e72cca3 commit 4709132

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or
1717
```
1818
{
1919
"require": {
20-
"recombee/php-api-client": "^4.1.1"
20+
"recombee/php-api-client": "^4.1.2"
2121
}
2222
}
2323
```

src/RecommApi/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function getBaseUri() {
8686
}
8787

8888
protected function getUserAgent() {
89-
$user_agent = 'recombee-php-api-client/4.1.1';
89+
$user_agent = 'recombee-php-api-client/4.1.2';
9090
if (isset($this->options['serviceName']))
9191
$user_agent .= ' '.($this->options['serviceName']);
9292
return $user_agent;

src/RecommApi/Requests/Batch.php

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ class Batch extends Request {
2424
*/
2525
public $requests;
2626

27+
/**
28+
* @var array Array containing values of optional parameters
29+
*/
30+
protected $optional;
31+
2732
/**
2833
* Construct the Batch request
2934
* @param Request[] $requests Array of Requests.

0 commit comments

Comments
 (0)