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