Skip to content

Commit e413b93

Browse files
authored
Add the missing type hint for get_placeholder() (#629)
1 parent 6162468 commit e413b93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Admin/Fields/Text.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Text extends Field implements RenderElement {
2626
*
2727
* @return string
2828
*/
29-
public function get_placeholder() {
30-
return $this->placeholder;
29+
public function get_placeholder(): string {
30+
return $this->placeholder ?? '';
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)