Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
egrigorev committed Apr 25, 2024
1 parent 9c8e482 commit 7d14e4e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/AmoCRM/Client/AmoCRMApiRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ public function __construct(
};
}

public function getRefreshAccessTokenCallback(): callable
{
return $this->refreshAccessTokenCallback;
}

public function setRefreshAccessTokenCallback(callable $callback): void
{
$this->refreshAccessTokenCallback = $callback;
Expand All @@ -156,7 +151,7 @@ private function refreshAccessToken(): void
throw new AmoCRMoAuthApiException('Can not update LongLivedAccessToken');
}

$newAccessToken = $this->getRefreshAccessTokenCallback();
$newAccessToken = ($this->refreshAccessTokenCallback)();
$this->accessToken = $newAccessToken;
}

Expand Down

0 comments on commit 7d14e4e

Please sign in to comment.