Skip to content

Commit

Permalink
Fix class invocation incompatibility with PHP 5.6 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
baileyherbert committed Aug 8, 2018
1 parent 751fd8e commit f3bcd6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/EnvatoClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public function __construct(AuthProcedure $auth) {
$this->procedure = $auth;

// Get the schema
$this->schema = (new Schema())();
$o = (new Schema());
$this->schema = $o();
}

public function __get($property) {
Expand All @@ -78,4 +79,4 @@ public function getToken() {
}
}

}
}

0 comments on commit f3bcd6a

Please sign in to comment.