Skip to content

Commit bfff725

Browse files
Lainowstonebuzz
authored andcommitted
GLPI 11 Compatibility
1 parent 4f3b4c3 commit bfff725

16 files changed

+248
-332
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: "Generate CI matrix"
2121
uses: "glpi-project/plugin-ci-workflows/.github/workflows/generate-ci-matrix.yml@v1"
2222
with:
23-
glpi-version: "10.0.x"
23+
glpi-version: "11.0.x"
2424
ci:
2525
name: "GLPI ${{ matrix.glpi-version }} - php:${{ matrix.php-version }} - ${{ matrix.db-image }}"
2626
needs: "generate-ci-matrix"

ajax/agent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
if (isset($_POST['action']) && isset($_POST['id'])) {
4343
$agent = new Agent();
4444
if (!$agent->getFromDB($_POST['id'])) {
45-
Response::sendError(404, 'Unable to load agent #' . $_POST['id']);
46-
47-
return;
45+
throw new \Glpi\Exception\Http\NotFoundHttpException();
4846
};
4947
$answer = [];
5048

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"php": ">=7.4"
3+
"php": ">=8.2"
44
},
55
"require-dev": {
66
"friendsofphp/php-cs-fixer": "^3.76",
@@ -14,7 +14,7 @@
1414
"config": {
1515
"optimize-autoloader": true,
1616
"platform": {
17-
"php": "7.4.99"
17+
"php": "8.2.99"
1818
},
1919
"sort-packages": true,
2020
"allow-plugins": {

0 commit comments

Comments
 (0)