mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 19:12: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
|
* @param Client $client
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setClient(Client &$client): self {
|
public function setClient(Client &$client) {
|
||||||
$this->client = $client;
|
$this->client = $client;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
@ -154,7 +154,7 @@ abstract class AbstractApiRequester implements ApiRequesterInterface, RequestCha
|
|||||||
* @param string $authToken
|
* @param string $authToken
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setAuthToken(string $authToken): self {
|
public function setAuthToken(string $authToken) {
|
||||||
$this->authToken = $authToken;
|
$this->authToken = $authToken;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,7 @@ interface ApiRequesterInterface
|
|||||||
* @param Client $client
|
* @param Client $client
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setClient(Client &$client): self;
|
public function setClient(Client &$client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the authentication token
|
* Get the authentication token
|
||||||
@ -52,7 +52,7 @@ interface ApiRequesterInterface
|
|||||||
* @param string $authToken
|
* @param string $authToken
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setAuthToken(string $authToken): self;
|
public function setAuthToken(string $authToken);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return $this
|
* @return $this
|
||||||
|
|||||||
@ -95,7 +95,7 @@ abstract class AbstractApiModel implements ApiModelInterface, JsonSerializable,
|
|||||||
* @param Client $client
|
* @param Client $client
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setClient(Client &$client): self {
|
public function setClient(Client &$client) {
|
||||||
$this->client = $client;
|
$this->client = $client;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,6 +69,6 @@ interface ApiModelInterface
|
|||||||
* @param Client $client
|
* @param Client $client
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setClient(Client &$client): self;
|
public function setClient(Client &$client);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user