Skip to content

Commit

Permalink
Small bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zzantares committed Jul 1, 2014
1 parent 2b28b87 commit 4c148b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ public function getApiUrl()
* Attempts to login using this credentials, if succeeded will return the
* AuthToken used in all requests.
*
* @return \ProxmoxVE\AuthToken|bool If login fails will return false
* otherwise will return the AuthToken.
* @return \ZzAntares\ProxmoxVE\AuthToken|bool If login fails will return
* false otherwise will return
* the AuthToken.
*/
public function login()
{
Expand Down
3 changes: 2 additions & 1 deletion src/ProxmoxVE.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,13 @@ public static function request(
* the login data.
*
* @throws \RuntimeException
* @throws \InvalidArgumentException If bar args supplied.
*/
public function __construct($credentials)
{
// Check if CURL is enabled
if (!function_exists('curl_version')) {
throw new RuntimeException('PHP5-CURL needs to be enabled!');
throw new \RuntimeException('PHP5-CURL needs to be enabled!');
}

if ($credentials instanceof Credentials) {
Expand Down

0 comments on commit 4c148b1

Please sign in to comment.