mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
fixed anonymous function declaration
uses changed to use
This commit is contained in:
parent
461481d56a
commit
1c09d31719
@ -184,7 +184,7 @@ initialization. The code needs to assign a value if not specified in
|
||||
function __construct() {
|
||||
$self = $this;
|
||||
|
||||
$this->beforeExtending('populateDefaults', function() uses ($self) {
|
||||
$this->beforeExtending('populateDefaults', function() use ($self) {
|
||||
if(empty($self->MyField)) {
|
||||
$self->MyField = 'Value we want as a default if not specified in $defaults, but set before extensions';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user