mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Revert "FIX: Strict error warnings on DataExtension"
This reverts commit 1960df8bc30ecb0467a33275810fd121a0125733. Revert "FIX: validate doesn't take var by reference" This reverts commit 866bb0713b9918e0450a516da9b7662c3287e24f. @ajshort has changed the method signatures in 1f6f7f08. While it wasn't explicitly noted in the commit message, I think its a good change - objects like a FieldList are always passed by reference in PHP, no need to declare that behaviour.
This commit is contained in:
parent
857d8bb8df
commit
accbd7f1e2
@ -58,7 +58,7 @@ abstract class DataExtension extends Extension {
|
||||
* @param $validationResult Local validation result
|
||||
* @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
|
||||
*/
|
||||
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
|
||||
*/
|
||||
public function updateFrontEndFields(FieldList &$fields) {
|
||||
public function updateFrontEndFields(FieldList $fields) {
|
||||
}
|
||||
|
||||
/**
|
||||
@ -165,7 +165,7 @@ abstract class DataExtension extends Extension {
|
||||
*
|
||||
* @param FieldList $actions FieldList
|
||||
*/
|
||||
public function updateCMSActions(FieldList &$actions) {
|
||||
public function updateCMSActions(FieldList $actions) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user