Permalink
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...
1 parent 972dfee commit 9a9cebb3693dd0464ebb0e96e935fb878ebc8ed3 @halkyon halkyon committed Apr 12, 2012
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);
}

0 comments on commit 9a9cebb

Please sign in to comment.