From a23175ed163a17055aea964a9a44ac11de995b11 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 14 Jun 2023 11:17:30 +0000
Subject: [PATCH] Fixes for UCRM 4.0
---
manifest.json | 2 +-
composer.json | 6 +++---
src/UcrmHelper.php | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/composer.json b/composer.json
index 2bd1c1b..b650935 100644
--- a/composer.json
+++ b/composer.json
@@ -6,12 +6,12 @@
},
"config": {
"platform": {
- "php": "7.3.26"
+ "php": "8.1"
}
},
"require": {
- "php": ">=7.3",
- "ubnt/ucrm-plugin-sdk": "^0.8.1",
+ "php": ">=8.1",
+ "ubnt/ucrm-plugin-sdk": "^0.9.0",
"umulmrum/holiday": "^0.6.0"
}
}
diff --git a/manifest.json b/manifest.json
index 8a5a4bb..ffe118b 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,7 +7,7 @@
"url": "https://github.com/jacekkow/ucrm-holidays",
"version": "0.1",
"ucrmVersionCompliancy": {
- "min": "3.0.0-beta2",
+ "min": "4.0.0",
"max": null
},
"unmsVersionCompliancy": {
diff --git a/src/UcrmHelper.php b/src/UcrmHelper.php
index aa20501..2bde977 100644
--- a/src/UcrmHelper.php
+++ b/src/UcrmHelper.php
@@ -58,7 +58,7 @@
throw new \RuntimeException('Failed to process event - event not found');
}
- if (!is_int($event['entityId'])) {
+ if (!ctype_digit($event['entityId'])) {
throw new \RuntimeException('Failed to process event - invalid entity ID');
}
--
Gitblit v1.10.0