Skip to content

Commit aee9637

Browse files
authored
GLPI 10.0 compatibility
* Permit installation on GLPI 10.0.x * Use same PHP minimal version as GLPI core
1 parent 9f1e1ac commit aee9637

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"require": {
3-
"php": ">=7.2"
3+
"php": ">=7.4"
44
},
55
"require-dev": {
66
"glpi-project/tools": "^0.4"
77
},
88
"config": {
99
"optimize-autoloader": true,
1010
"platform": {
11-
"php": "7.2.0"
11+
"php": "7.4.0"
1212
},
1313
"sort-packages": true
1414
}

setup.php.tpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030

3131
define('PLUGIN_{UNAME}_VERSION', '{VERSION}');
3232

33+
// Minimal GLPI version, inclusive
34+
define("PLUGIN_{UNAME}_MIN_GLPI_VERSION", "10.0.0");
35+
// Maximum GLPI version, exclusive
36+
define("PLUGIN_{UNAME}_MAX_GLPI_VERSION", "10.0.99");
37+
3338
/**
3439
* Init hooks of the plugin.
3540
* REQUIRED
@@ -58,7 +63,8 @@ function plugin_version_{LNAME}() {
5863
'homepage' => '',
5964
'requirements' => [
6065
'glpi' => [
61-
'min' => '9.5',
66+
'min' => PLUGIN_{UNAME}_MIN_GLPI_VERSION,
67+
'min' => PLUGIN_{UNAME}_MAX_GLPI_VERSION,
6268
]
6369
]
6470
];

0 commit comments

Comments
 (0)