mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 11:02:30 +01:00
Fixed errors caused by "self" in interfaces
+ Fixed an error that was caused by the presence of "self" in type hinting inside interfaces
This commit is contained in:
@ -131,7 +131,7 @@ abstract class AbstractApiRequester implements ApiRequesterInterface, RequestCha
|
||||
* @param Client $client
|
||||
* @return self
|
||||
*/
|
||||
public function setClient(Client &$client): self {
|
||||
public function setClient(Client &$client) {
|
||||
$this->client = $client;
|
||||
return $this;
|
||||
}
|
||||
@ -154,7 +154,7 @@ abstract class AbstractApiRequester implements ApiRequesterInterface, RequestCha
|
||||
* @param string $authToken
|
||||
* @return self
|
||||
*/
|
||||
public function setAuthToken(string $authToken): self {
|
||||
public function setAuthToken(string $authToken) {
|
||||
$this->authToken = $authToken;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ interface ApiRequesterInterface
|
||||
* @param Client $client
|
||||
* @return self
|
||||
*/
|
||||
public function setClient(Client &$client): self;
|
||||
public function setClient(Client &$client);
|
||||
|
||||
/**
|
||||
* Get the authentication token
|
||||
@ -52,7 +52,7 @@ interface ApiRequesterInterface
|
||||
* @param string $authToken
|
||||
* @return self
|
||||
*/
|
||||
public function setAuthToken(string $authToken): self;
|
||||
public function setAuthToken(string $authToken);
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
|
||||
@ -95,7 +95,7 @@ abstract class AbstractApiModel implements ApiModelInterface, JsonSerializable,
|
||||
* @param Client $client
|
||||
* @return self
|
||||
*/
|
||||
public function setClient(Client &$client): self {
|
||||
public function setClient(Client &$client) {
|
||||
$this->client = $client;
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -69,6 +69,6 @@ interface ApiModelInterface
|
||||
* @param Client $client
|
||||
* @return self
|
||||
*/
|
||||
public function setClient(Client &$client): self;
|
||||
public function setClient(Client &$client);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user