The expression return $this->withProperty('user', $user) returns the type Jasny\Auth\Authz\StateTrait which is incompatible with the type-hinted return Jasny\Auth\AuthzInterface.
Loading history...
39
}
40
41
/**
42
* Get a copy of the service for the given context.
43
* Returns $this if authz hasn't changed.
44
*
45
* @param Context|null $context
46
* @return static&Authz
47
*/
48
1
public function inContextOf(?Context $context): Authz
The expression return $this->withProperty('context', $context) returns the type Jasny\Auth\Authz\StateTrait which is incompatible with the type-hinted return Jasny\Auth\AuthzInterface.