Skip to content

Commit

Permalink
Fix deprecated dynamic property in Batch class (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraFiedler committed Jul 19, 2024
1 parent e72cca3 commit 4709132
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ or
```
{
"require": {
"recombee/php-api-client": "^4.1.1"
"recombee/php-api-client": "^4.1.2"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/RecommApi/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function getBaseUri() {
}

protected function getUserAgent() {
$user_agent = 'recombee-php-api-client/4.1.1';
$user_agent = 'recombee-php-api-client/4.1.2';
if (isset($this->options['serviceName']))
$user_agent .= ' '.($this->options['serviceName']);
return $user_agent;
Expand Down
5 changes: 5 additions & 0 deletions src/RecommApi/Requests/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class Batch extends Request {
*/
public $requests;

/**
* @var array Array containing values of optional parameters
*/
protected $optional;

/**
* Construct the Batch request
* @param Request[] $requests Array of Requests.
Expand Down

0 comments on commit 4709132

Please sign in to comment.