Skip to content
Snippets Groups Projects
Commit aa248eb1 authored by Piotr Potrebka's avatar Piotr Potrebka
Browse files

fix: unused const, type cast

parent b1186859
No related branches found
No related tags found
1 merge request!31Devel
Pipeline #153404 failed with stages
in 57 seconds
......@@ -6,9 +6,6 @@ use WPDesk\Forms\Field;
class CheckboxField extends BasicField {
const VALUE_TRUE = 'yes';
const VALUE_FALSE = 'no';
public function get_type(): string {
return 'checkbox';
}
......
......@@ -7,15 +7,14 @@ use WPDesk\Forms\Sanitizer\TextFieldSanitizer;
class DateField extends BasicField {
public function __construct() {
parent::__construct();
$this->set_placeholder('YYYY-MM-DD');
}
public function get_type() {
public function get_type(): string {
return 'date';
}
public function get_template_name() {
public function get_template_name(): string {
return 'input-text';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment