@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * |
55 | - * @param type $type |
|
56 | - * @param type $props |
|
55 | + * @param string $type |
|
56 | + * @param type string |
|
57 | 57 | * @throws \RuntimeException |
58 | 58 | */ |
59 | 59 | private static function create_core_component( $type, $props ) |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * |
82 | - * @param type $type |
|
83 | - * @param type $props |
|
82 | + * @param string $type |
|
83 | + * @param type string |
|
84 | 84 | * @throws \RuntimeException |
85 | 85 | */ |
86 | 86 | private static function create_registered_component( $type, $props ) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Check if the given component is disabled. |
162 | 162 | * |
163 | - * @param UI\AbstractComponent $component |
|
163 | + * @param ValueComponentInterface $component |
|
164 | 164 | * @return boolean |
165 | 165 | */ |
166 | 166 | private function is_disabled( $component ) |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Filter the component's value using its filter function (if applicable) |
178 | 178 | * |
179 | - * @param UI\AbstractComponent $component |
|
179 | + * @param ValueComponentInterface $component |
|
180 | 180 | */ |
181 | 181 | private function filter( $component ) |
182 | 182 | { |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * If the value is invalid, the old value is used, and an error message is |
199 | 199 | * saved into the errors array as component_name => error_message. |
200 | 200 | * |
201 | - * @param UI\AbstractComponent $component The component to validate. |
|
201 | + * @param ValueComponentInterface $component The component to validate. |
|
202 | 202 | */ |
203 | 203 | private function validate( $component ) |
204 | 204 | { |