Completed
Push — trunk ( df6be1...704260 )
by Justin
05:04
created
includes/CMB2.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -408,6 +408,7 @@  discard block
 block discarded – undo
408 408
 	 * Add a hidden field to the list of hidden fields to be rendered later
409 409
 	 * @since 2.0.0
410 410
 	 * @param array  $field_args Array of field arguments to be passed to CMB2_Field
411
+	 * @param CMB2_Field $field_group
411 412
 	 */
412 413
 	public function add_hidden_field( $field_args, $field_group = null ) {
413 414
 		if ( isset( $field_args['field_args'] ) ) {
@@ -851,7 +852,7 @@  discard block
 block discarded – undo
851 852
 	 * @param  mixed  $field_id     Field (or group field) ID
852 853
 	 * @param  mixed  $field_args   Array of field arguments
853 854
 	 * @param  mixed  $sub_field_id Sub field ID (if field_group exists)
854
-	 * @param  mixed  $field_group  If a sub-field, will be the parent group CMB2_Field object
855
+	 * @param  CMB2_Field|null  $field_group  If a sub-field, will be the parent group CMB2_Field object
855 856
 	 * @return array                Array of CMB2_Field arguments
856 857
 	 */
857 858
 	public function get_field_args( $field_id, $field_args, $sub_field_id, $field_group ) {
@@ -938,7 +939,7 @@  discard block
 block discarded – undo
938 939
 	 * @since  2.0.0
939 940
 	 * @param  array  $field           Metabox field config array
940 941
 	 * @param  int    $position        (optional) Position of metabox. 1 for first, etc
941
-	 * @return mixed                   Field id or false
942
+	 * @return string                   Field id or false
942 943
 	 */
943 944
 	public function add_field( array $field, $position = 0 ) {
944 945
 		if ( ! is_array( $field ) || ! array_key_exists( 'id', $field ) ) {
Please login to merge, or discard this patch.