From f50206a7c1cf85a17503a139b17e46d299b5e122 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 11 Dec 2015 14:42:48 +1300 Subject: [PATCH] API Add default constructor for compatibility with https://github.com/silverstripe/silverstripe-spamprotection/pull/42 --- code/MathSpamProtector.php | 3 +++ composer.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/MathSpamProtector.php b/code/MathSpamProtector.php index 365333c..5e2d5f5 100644 --- a/code/MathSpamProtector.php +++ b/code/MathSpamProtector.php @@ -22,4 +22,7 @@ class MathSpamProtector implements SpamProtector public function setFieldMapping($fieldMapping) { } + + public function __construct($options = array()) { + } } diff --git a/composer.json b/composer.json index 53951c3..7aba73f 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ }], "minimum-stability": "dev", "require": { - "silverstripe/spamprotection": "dev-master" + "silverstripe/spamprotection": "~2.0" }, "license": "BSD-3-Clause" }