Skip to content

Commit 4c148b1

Browse files
committed
Small bug fixed
1 parent 2b28b87 commit 4c148b1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Credentials.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ public function getApiUrl()
152152
* Attempts to login using this credentials, if succeeded will return the
153153
* AuthToken used in all requests.
154154
*
155-
* @return \ProxmoxVE\AuthToken|bool If login fails will return false
156-
* otherwise will return the AuthToken.
155+
* @return \ZzAntares\ProxmoxVE\AuthToken|bool If login fails will return
156+
* false otherwise will return
157+
* the AuthToken.
157158
*/
158159
public function login()
159160
{

src/ProxmoxVE.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,13 @@ public static function request(
151151
* the login data.
152152
*
153153
* @throws \RuntimeException
154+
* @throws \InvalidArgumentException If bar args supplied.
154155
*/
155156
public function __construct($credentials)
156157
{
157158
// Check if CURL is enabled
158159
if (!function_exists('curl_version')) {
159-
throw new RuntimeException('PHP5-CURL needs to be enabled!');
160+
throw new \RuntimeException('PHP5-CURL needs to be enabled!');
160161
}
161162

162163
if ($credentials instanceof Credentials) {

0 commit comments

Comments
 (0)