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:
Benjamin Blake
2020-02-28 12:01:46 -07:00
parent 52244adb34
commit cdbee13e11
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ interface RequestChainableInterface
*
* @return self
*/
public function setCaller($object): self;
public function setCaller(?object $object);
/**
* Return the request chain heirarchy

View File

@ -40,7 +40,7 @@ trait RequestChainable
*
* @return self
*/
public function setCaller($object): self
public function setCaller(?object $object)
{
$this->caller = $object;
return $this;