Skip to content

Commit

Permalink
Restores a required minimum of Craft 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseydiloreto committed Dec 19, 2023
1 parent 6150f28 commit a48b734
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Unreleased

### Changed
- Restores a required minimum of Craft 4.0.0.

## 4.3.9 - 2023-12-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
],
"require": {
"craftcms/cms": "^4.5.7"
"craftcms/cms": "^4.0.0"
},
"replace": {
"doublesecretagency/craft-smartmap":"3.*"
Expand Down
5 changes: 5 additions & 0 deletions src/GoogleMapsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ static function (RegisterComponentTypesEvent $event) {
*/
private function _registerCompatibleFieldTypes(): void
{
// If unable to mark fields as compatible, bail (requires Craft 4.5.7+)
if (!class_exists(DefineCompatibleFieldTypesEvent::class)) {
return;
}
// Mark fields as compatible
Event::on(
Fields::class,
Fields::EVENT_DEFINE_COMPATIBLE_FIELD_TYPES,
Expand Down

0 comments on commit a48b734

Please sign in to comment.