diff --git a/CHANGELOG.md b/CHANGELOG.md index 53129b5..b721a7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Changed + +* Initial Craft 4 support + ## 1.0.3 - 2018-05-18 ### Fixed diff --git a/README.md b/README.md index e853157..b52405b 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@
-# Validateit plugin for Craft 3 +# Validateit plugin for Craft 4 Supercharged text field validation... ### Requirements -This plugin requires Craft CMS 3.0.0 or later. +This plugin requires Craft CMS 4.0.0 or later. ### Installation diff --git a/composer.json b/composer.json index 7b39f1a..35c2cb1 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "fruitstudios/validateit", "description": "Supercharged text field validation.", "type": "craft-plugin", - "version": "1.0.3", + "version": "2.0.0-dev", "keywords": [ "craft", "cms", @@ -23,7 +23,7 @@ } ], "require": { - "craftcms/cms": "^3.0.2" + "craftcms/cms": "^4.0.0" }, "autoload": { "psr-4": { diff --git a/src/Validateit.php b/src/Validateit.php index f162d97..a2979b6 100644 --- a/src/Validateit.php +++ b/src/Validateit.php @@ -1,6 +1,6 @@ getView()->renderTemplate( @@ -150,7 +150,7 @@ public function getSettingsHtml() /** * @inheritdoc */ - public function getInputHtml($value, ElementInterface $element = null): string + public function getInputHtml(mixed $value, ?\craft\base\ElementInterface $element = null): string { // Get our id and namespace $id = Craft::$app->getView()->formatInputId($this->handle); diff --git a/src/translations/en/validateit.php b/src/translations/en/validateit.php index 9778362..c9e9ec9 100644 --- a/src/translations/en/validateit.php +++ b/src/translations/en/validateit.php @@ -1,6 +1,6 @@