The expression return $this returns the type AustinHeap\Security\Txt\Directives\Disclosure which includes types incompatible with the type-hinted return AustinHeap\Security\Txt\SecurityTxt.
Loading history...
50
}
51
52
/**
53
* Get the disclosure policy.
54
*
55
* @return string
56
*/
57
public function getDisclosure(): string
58
{
59
return $this->disclosure;
60
}
61
62
/**
63
* Determines if disclosure is valid.
64
*
65
* @param string $disclosure
66
*
67
* @return bool
68
*/
69
public function validDisclosure(string $disclosure): bool