Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/bitrix24.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function setOnExpiredToken(callable $callback)
*/
public function setOnCallApiMethod(callable $callback)
{
$this->_onCallApiMothod = $callback;
$this->_onCallApiMethod = $callback;
}

/**
Expand Down Expand Up @@ -1132,8 +1132,8 @@ public function call($methodName, array $additionalParameters = array())
$result = $this->getWebhookUsage() ? $this->_call_webhook($methodName, $additionalParameters)
: $this->_call($methodName, $additionalParameters);

if (is_callable($this->_onCallApiMothod)) {
call_user_func($this->_onCallApiMothod, $this, $methodName);
if (is_callable($this->_onCallApiMethod)) {
call_user_func($this->_onCallApiMethod, $this, $methodName);
}

} catch (Bitrix24TokenIsExpiredException $e) {
Expand Down