mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Argument hinting of FormField instance for TabSet::push() to
comply with parent CompositeField::push() for E_STRICT compliance
This commit is contained in:
parent
9cf1686786
commit
42988ecb18
@ -129,7 +129,7 @@ class TabSet extends CompositeField {
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
@ -155,4 +155,4 @@ class TabSet extends CompositeField {
|
||||
public function removeByName( $tabName, $dataFieldOnly = false ) {
|
||||
parent::removeByName( $tabName, $dataFieldOnly );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user