mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2026-01-18 10:09:12 +01:00
Updated RequestChanable Interface and Trait
+ Fixed an error that was caused by the use of the "self" type-hint in a trait + Added more type-hints to the `setCaller()` method
This commit is contained in:
@ -28,7 +28,7 @@ interface RequestChainableInterface
|
|||||||
*
|
*
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setCaller($object): self;
|
public function setCaller(?object $object);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the request chain heirarchy
|
* Return the request chain heirarchy
|
||||||
|
|||||||
@ -40,7 +40,7 @@ trait RequestChainable
|
|||||||
*
|
*
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public function setCaller($object): self
|
public function setCaller(?object $object)
|
||||||
{
|
{
|
||||||
$this->caller = $object;
|
$this->caller = $object;
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
Reference in New Issue
Block a user