Skip to content

Commit

Permalink
BUGFIX Argument hinting of FormField instance for TabSet::push() to
Browse files Browse the repository at this point in the history
comply with parent CompositeField::push() for E_STRICT compliance
  • Loading branch information
Sean Harvey committed Apr 12, 2012
1 parent 9cf1686 commit 42988ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forms/TabSet.php
Expand Up @@ -129,7 +129,7 @@ public function fieldByName($name) {
/**
* Add a new child field to the end of the set.
*/
public function push($field) {
public function push(FormField $field) {
parent::push($field);
$field->setTabSet($this);
}
Expand All @@ -155,4 +155,4 @@ public function insertAfter($field, $insertAfter) {
public function removeByName( $tabName, $dataFieldOnly = false ) {
parent::removeByName( $tabName, $dataFieldOnly );
}
}
}

0 comments on commit 42988ec

Please sign in to comment.