class SubheaderPresenter {
private string $titletag;
private string $alignment;
private bool $displaySubheader;
private string $Visibility;
private string $output;
}
whenever i add type to properties, i get this error:
Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
It seems like assigning the types to these properties causing the error. What can i do to fix it. php does support types right? ( just started learning it yesterday )