Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 1f8b3af

Browse files
authored
Merge pull request #220 from mesilov/issue#217
fix error
2 parents c2841a4 + 8b6426d commit 1f8b3af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bitrix24.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function setOnExpiredToken(callable $callback)
216216
*/
217217
public function setOnCallApiMethod(callable $callback)
218218
{
219-
$this->_onCallApiMothod = $callback;
219+
$this->_onCallApiMethod = $callback;
220220
}
221221

222222
/**
@@ -1132,8 +1132,8 @@ public function call($methodName, array $additionalParameters = array())
11321132
$result = $this->getWebhookUsage() ? $this->_call_webhook($methodName, $additionalParameters)
11331133
: $this->_call($methodName, $additionalParameters);
11341134

1135-
if (is_callable($this->_onCallApiMothod)) {
1136-
call_user_func($this->_onCallApiMothod, $this, $methodName);
1135+
if (is_callable($this->_onCallApiMethod)) {
1136+
call_user_func($this->_onCallApiMethod, $this, $methodName);
11371137
}
11381138

11391139
} catch (Bitrix24TokenIsExpiredException $e) {

0 commit comments

Comments
 (0)