From 71100b5a32aca783432735c53bd36dfb1fe64668 Mon Sep 17 00:00:00 2001 From: Roel van Hintum Date: Mon, 24 Jul 2023 13:30:55 +0200 Subject: [PATCH] Improve craft 3 compatibility --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/controllers/SubscribeController.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91feb0d..4df9579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ================== +## 2.2.1 - 2023-07-24 +### Fixes +- Improve craft 3 compatibility + ## 2.2.0 - 2023-03-06 ### Changes - Initial public release diff --git a/composer.json b/composer.json index c6faf7c..e34ac53 100755 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "craftcms/cms": "^3.0.0 || ^4.0.0" + "craftcms/cms": "^3.0.0" }, "autoload": { "psr-4": { diff --git a/src/controllers/SubscribeController.php b/src/controllers/SubscribeController.php index 1371287..e7939fc 100755 --- a/src/controllers/SubscribeController.php +++ b/src/controllers/SubscribeController.php @@ -16,7 +16,7 @@ class SubscribeController extends Controller /** * @inheritdoc */ - protected array|int|bool $allowAnonymous = true; + protected $allowAnonymous = self::ALLOW_ANONYMOUS_LIVE; // Public Methods // =========================================================================