Skip to content
This repository
Browse code

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
Sean Harvey authored April 12, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  model/Versioned.php
2  model/Versioned.php
@@ -107,7 +107,7 @@ function __construct($stages) {
107 107
 		'Version' => 'Int'
108 108
 	);
109 109
 
110  
-	static function add_to_class($class, $extensionClass, $args) {
  110
+	static function add_to_class($class, $extensionClass, $args = null) {
111 111
 		Config::inst()->update($class, 'has_many', array('Versions' => $class));
112 112
 		parent::add_to_class($class, $extensionClass, $args);
113 113
 	}

0 notes on commit 9a9cebb

Please sign in to comment.
Something went wrong with that request. Please try again.