The expression return $this->certificate ?? false could return the type string which is incompatible with the type-hinted return boolean. Consider adding an additional type-check to rule them out.
The expression return $this->privateKey ?? false could return the type string which is incompatible with the type-hinted return boolean. Consider adding an additional type-check to rule them out.
Loading history...
30
}
31
32
1
public function setCertificate(string $certificate): self
33
{
34
1
$this->certificate = $certificate;
35
36
1
return $this;
37
}
38
39
1
public function setPrivateKey(string $privateKey): self