mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #3523 from michalkleiner/patch-1
fixed anonymous function declaration
This commit is contained in:
commit
b58d42f722
@ -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