public function setAccess(?string $access): AbstractElement
14
{
15
108
if (!static::accessIsValid($access)) {
16
2
throw new InvalidArgumentException(sprintf('Access "%s" is invalid, please provide one of these accesses: %s', $access, implode(', ', self::getAccesses())));
The expression return $this returns the type WsdlToPhp\PhpGenerator\E...sRestrictedElementTrait which is incompatible with the type-hinted return WsdlToPhp\PhpGenerator\Element\AbstractElement.