Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 9a9cebb3693dd0464ebb0e96e935fb878ebc8ed3 1 parent 972dfee
@halkyon halkyon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  model/Versioned.php
View
2  model/Versioned.php
@@ -107,7 +107,7 @@ function __construct($stages) {
'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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.