Skip to content

Commit

Permalink
Merge pull request #142 from stof/patch-1
Browse files Browse the repository at this point in the history
add phpdoc on the overriden getCommand method
  • Loading branch information
michalpierog authored Feb 14, 2023
2 parents 581d1bc + 2da426e commit 2492720
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Client/KeenIOClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace KeenIO\Client;

use GuzzleHttp\Command\CommandInterface;
use GuzzleHttp\Command\Guzzle\GuzzleClient;
use GuzzleHttp\Command\Guzzle\Description;
use GuzzleHttp\Client;
Expand Down Expand Up @@ -100,6 +101,12 @@ public function __call($method, array $args)
return parent::__call($method, array($this->combineEventCollectionArgs($args)));
}

/**
* @param string $name
* @param array<string, mixed> $args
*
* @return CommandInterface
*/
public function getCommand($name, array $params = [])
{
$params['projectId'] = $this->getConfig('projectId');
Expand Down

0 comments on commit 2492720

Please sign in to comment.