mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Strict error warnings on DataExtension
PHP is throwing strict error warnings when overriding the updateCMSFields and other functions in custom DataExtensions due to the fact that the abstract class doesn't declare the variables should be passed by reference
This commit is contained in:
parent
b381e9933d
commit
1960df8bc3
@ -58,7 +58,7 @@ abstract class DataExtension extends Extension {
|
|||||||
* @param $validationResult Local validation result
|
* @param $validationResult Local validation result
|
||||||
* @throws ValidationException
|
* @throws ValidationException
|
||||||
*/
|
*/
|
||||||
public function validate(ValidationResult $validationResult) {
|
public function validate(ValidationResult &$validationResult) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -145,7 +145,7 @@ abstract class DataExtension extends Extension {
|
|||||||
*
|
*
|
||||||
* @param FieldList $fields FieldList with a contained TabSet
|
* @param FieldList $fields FieldList with a contained TabSet
|
||||||
*/
|
*/
|
||||||
public function updateCMSFields(FieldList $fields) {
|
public function updateCMSFields(FieldList &$fields) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -156,7 +156,7 @@ abstract class DataExtension extends Extension {
|
|||||||
*
|
*
|
||||||
* @param FieldList $fields FieldList without TabSet nesting
|
* @param FieldList $fields FieldList without TabSet nesting
|
||||||
*/
|
*/
|
||||||
public function updateFrontEndFields(FieldList $fields) {
|
public function updateFrontEndFields(FieldList &$fields) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -165,7 +165,7 @@ abstract class DataExtension extends Extension {
|
|||||||
*
|
*
|
||||||
* @param FieldList $actions FieldList
|
* @param FieldList $actions FieldList
|
||||||
*/
|
*/
|
||||||
public function updateCMSActions(FieldList $actions) {
|
public function updateCMSActions(FieldList &$actions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user