mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API-CHANGE: adding a default option of null to the $args argument in DataExtension::add_to_class. The args argument isn't used anywhere in the class and adding a third argument to every call to this function is tedious.
This commit is contained in:
parent
6c697e5d05
commit
e76913f811
@ -32,7 +32,7 @@ abstract class DataExtension extends Extension {
|
||||
);
|
||||
|
||||
|
||||
static function add_to_class($class, $extensionClass, $args) {
|
||||
static function add_to_class($class, $extensionClass, $args = null) {
|
||||
if(method_exists($class, 'extraDBFields')) {
|
||||
$extraStaticsMethod = 'extraDBFields';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user