Forminator_Form_Entry_Model::get_meta headers incorrect
-
The PHPDocs headers for Forminator_Form_Entry_Model::get_meta and Forminator_Form_Entry_Model::get_grouped_meta are incorrect.
/**
* Get Meta
*
* @param string $meta_key - the meta key.
* @param bool|object $default_value - the default value.
*
* @return bool|string
* @since 1.0
*/
public function get_meta( $meta_key, $default_value = false ) {If you look through the plugin code you can see that $default_value parameter (in both functions) is actually passed null|string|false (rather than bool|object).
Furthermore, the @return (from both functions) is mixed (not just bool|string)
Given Forminator_Form_Entry_Model is exposed as a return value from some of the API functions (e.g. get_entry, etc) it would be useful if the documented signature of public methods was accurate.
The topic ‘Forminator_Form_Entry_Model::get_meta headers incorrect’ is closed to new replies.