The expression return $this->getAttribute('placeholder') could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
38
}
39
40
/**
41
* @param string $placeholder
42
*/
43
1
public function setPlaceholder(string $placeholder): void