Skip to content

Commit 3557fac

Browse files
authored
Merge pull request #186 from aiham/valeriitropin-master
fix classes imports and an undefined valiable
2 parents a394f7f + 2e095bb commit 3557fac

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/OpenTok/Broadcast.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use OpenTok\Exception\BroadcastDomainException;
66
use OpenTok\Exception\BroadcastUnexpectedValueException;
7+
use OpenTok\Exception\InvalidArgumentException;
8+
use OpenTok\Util\Client;
79
use OpenTok\Util\Validators;
810

911
class Broadcast {

src/OpenTok/OpenTok.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function stopArchive($archiveId)
331331
* @param String $archiveId The archive ID.
332332
*
333333
* @throws ArchiveException There is no archive with the specified ID.
334-
* @throws OpenTokArgumentException The archive ID provided is null or an empty string.
334+
* @throws InvalidArgumentException The archive ID provided is null or an empty string.
335335
*
336336
* @return Archive The Archive object.
337337
*/

src/OpenTok/Util/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use OpenTok\Exception\BroadcastDomainException;
2020
use OpenTok\Exception\BroadcastUnexpectedValueException;
2121
use OpenTok\Exception\BroadcastAuthenticationException;
22+
use OpenTok\MediaMode;
2223

2324
// TODO: build this dynamically
2425
/** @internal */

src/OpenTok/Util/Validators.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static function validateArchiveListData($archiveListData)
179179
$document->loadSchema(self::$archiveSchemaUri);
180180
if (!$document->validate()) {
181181
throw new InvalidArgumentException(
182-
'The archive data provided is not valid. Errors:'.$document->lastError.' archiveData:'.print_r($archiveData, true)
182+
'The archive data provided is not valid. Errors:'.$document->lastError.' archiveData:'.print_r($archiveListData, true)
183183
);
184184
}
185185
}

0 commit comments

Comments
 (0)