|
59 | 59 | use BigBlueButton\Responses\PutRecordingTextTrackResponse; |
60 | 60 | use BigBlueButton\Responses\UpdateRecordingsResponse; |
61 | 61 | use BigBlueButton\Util\UrlBuilder; |
62 | | -use SimpleXMLElement; |
63 | 62 |
|
64 | 63 | /** |
65 | 64 | * Class BigBlueButton. |
@@ -108,7 +107,7 @@ class BigBlueButton |
108 | 107 | * |
109 | 108 | * @throws ConfigException |
110 | 109 | */ |
111 | | - public function __construct(?string $baseUrl = null, ?string $secret = null, ?TransportInterface $transport = null) |
| 110 | + public function __construct(string $baseUrl = null, string $secret = null, TransportInterface $transport = null) |
112 | 111 | { |
113 | 112 | // Keeping backward compatibility with older deployed versions |
114 | 113 | $this->securitySecret = $secret ?: getenv('BBB_SECURITY_SALT') ?: getenv('BBB_SECRET'); |
@@ -478,10 +477,10 @@ public function setJSessionId(string $jSessionId): void |
478 | 477 | * @throws ParsingException |
479 | 478 | * @throws RuntimeException |
480 | 479 | */ |
481 | | - private function processXmlResponse(string $url, string $payload = '', string $contentType = 'application/xml'): SimpleXMLElement |
| 480 | + private function processXmlResponse(string $url, string $payload = '', string $contentType = 'application/xml'): \SimpleXMLElement |
482 | 481 | { |
483 | 482 | try { |
484 | | - return new SimpleXMLElement($this->requestUrl($url, $payload, $contentType)); |
| 483 | + return new \SimpleXMLElement($this->requestUrl($url, $payload, $contentType)); |
485 | 484 | } catch (NetworkException|RuntimeException $e) { |
486 | 485 | throw $e; |
487 | 486 | } catch (\Throwable $e) { |
|
0 commit comments