Skip to content

Commit

Permalink
Add the missing type hint for get_placeholder()
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndkauboy committed Oct 18, 2024
1 parent 6162468 commit 812f8d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Admin/Fields/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Text extends Field implements RenderElement {
*
* @return string
*/
public function get_placeholder() {
return $this->placeholder;
public function get_placeholder(): string {
return $this->placeholder ?? '';
}

/**
Expand Down

0 comments on commit 812f8d3

Please sign in to comment.