From 14d3eeddc827c7d822ecbc7b371b13cb3e9ac108 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 14 Jun 2023 10:56:01 +0000
Subject: [PATCH] Fixes for UCRM 4.0
---
manifest.json | 2 +-
composer.json | 7 ++++---
src/UcrmHelper.php | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/composer.json b/composer.json
index 8b4e080..b0e8cf3 100644
--- a/composer.json
+++ b/composer.json
@@ -6,12 +6,13 @@
},
"config": {
"platform": {
- "php": "7.3.26"
+ "php": "8.1"
}
},
"require": {
- "php": ">=7.1",
- "ubnt/ucrm-plugin-sdk": "^0.8.1",
+ "php": ">=8.1",
+ "ext-json": "*",
+ "ubnt/ucrm-plugin-sdk": "^0.9.0",
"webit/w-firma-api": "^2.3"
}
}
diff --git a/manifest.json b/manifest.json
index 920d64c..524fd79 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,7 +7,7 @@
"url": "https://github.com/jacekkow/ucrm-wfirma",
"version": "1.1",
"ucrmVersionCompliancy": {
- "min": "3.4.3",
+ "min": "4.0.0",
"max": null
},
"unmsVersionCompliancy": {
diff --git a/src/UcrmHelper.php b/src/UcrmHelper.php
index ccdd37e..bc14978 100644
--- a/src/UcrmHelper.php
+++ b/src/UcrmHelper.php
@@ -79,7 +79,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