mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Versioned::add_to_class() now conforms to parent
DataExtension::add_to_class() with $args being optional (default to null). This is for E_STRICT compliance.
This commit is contained in:
parent
972dfee5c3
commit
9a9cebb369
@ -107,7 +107,7 @@ class Versioned extends DataExtension {
|
||||
'Version' => 'Int'
|
||||
);
|
||||
|
||||
static function add_to_class($class, $extensionClass, $args) {
|
||||
static function add_to_class($class, $extensionClass, $args = null) {
|
||||
Config::inst()->update($class, 'has_many', array('Versions' => $class));
|
||||
parent::add_to_class($class, $extensionClass, $args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user