Skip to content

Commit

Permalink
Added types for apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheipashkevich authored Nov 26, 2024
1 parent 77f40bb commit b97e21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forge.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Forge
* @param string|null $apiKey
* @return void
*/
public function __construct($apiKey = null, ?HttpClient $guzzle = null)
public function __construct(?string $apiKey = null, ?HttpClient $guzzle = null)
{
if (! is_null($apiKey)) {
$this->setApiKey($apiKey, $guzzle);
Expand Down Expand Up @@ -88,7 +88,7 @@ protected function transformCollection($collection, $class, $extraData = [])
* @param \GuzzleHttp\Client|null $guzzle
* @return $this
*/
public function setApiKey($apiKey, $guzzle = null)
public function setApiKey(string $apiKey, $guzzle = null)
{
$this->apiKey = $apiKey;

Expand Down

0 comments on commit b97e21a

Please sign in to comment.