Skip to content

Commit f3bcd6a

Browse files
committed
Fix class invocation incompatibility with PHP 5.6 and below
1 parent 751fd8e commit f3bcd6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/EnvatoClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function __construct(AuthProcedure $auth) {
5151
$this->procedure = $auth;
5252

5353
// Get the schema
54-
$this->schema = (new Schema())();
54+
$o = (new Schema());
55+
$this->schema = $o();
5556
}
5657

5758
public function __get($property) {
@@ -78,4 +79,4 @@ public function getToken() {
7879
}
7980
}
8081

81-
}
82+
}

0 commit comments

Comments
 (0)