Skip to content

Commit fdcf009

Browse files
MyvTsvRom1-Bstonebuzz
authored
End Of Life plugins (#449)
* eol genericobject * eol * glpi11 compat * phpstan5 * add view items button * remove dependencies * lint * fix header * php-cs-fixer * twigcs * psalm * rector * review * fix psalm * adapt changelog --------- Co-authored-by: Rom1-B <[email protected]> Co-authored-by: Stanislas Kita <[email protected]>
1 parent 73f91f5 commit fdcf009

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1337
-6736
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"

.php-cs-fixer.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
use PhpCsFixer\Config;
4+
use PhpCsFixer\Finder;
5+
6+
$finder = Finder::create()
7+
->in(__DIR__)
8+
->name('*.php')
9+
->ignoreVCSIgnored(true);
10+
11+
$config = new Config();
12+
13+
$rules = [
14+
'@PER-CS2.0' => true,
15+
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'array_destructuring', 'arrays']], // For PHP 7.4 compatibility
16+
];
17+
18+
return $config
19+
->setRules($rules)
20+
->setFinder($finder)
21+
->setUsingCache(false);

.phpcs.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.twig_cs.dist.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use FriendsOfTwig\Twigcs\Finder\TemplateFinder;
6+
use FriendsOfTwig\Twigcs\Config\Config;
7+
use Glpi\Tools\GlpiTwigRuleset;
8+
9+
$finder = TemplateFinder::create()
10+
->in(__DIR__ . '/templates')
11+
->name('*.html.twig')
12+
->ignoreVCSIgnored(true);
13+
14+
return Config::create()
15+
->setFinder($finder)
16+
->setRuleSet(GlpiTwigRuleset::class)
17+
;

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## [Unreleased]
8+
## [3.0.0 (Migration Only)] - 2025-30-09
99

10-
- Fix massive actions compatibility with Fields plugin
10+
- GLPI 11 compatibility
1111

1212
## [2.14.14] - 2025-04-23
1313

ajax/remove.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

composer.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"require": {
3-
"php": ">=7.4"
3+
"php": ">=8.2"
44
},
55
"require-dev": {
6-
"glpi-project/phpstan-glpi": "^1.1",
7-
"glpi-project/tools": "^0.8.0",
8-
"php-parallel-lint/php-parallel-lint": "^1.4",
9-
"phpstan/phpstan": "^2.1",
10-
"squizlabs/php_codesniffer": "^3.13"
6+
"glpi-project/tools": "^0.8.0"
117
},
128
"config": {
139
"optimize-autoloader": true,
1410
"platform": {
15-
"php": "7.4.0"
11+
"php": "8.2.99"
1612
},
1713
"sort-packages": true
14+
},
15+
"autoload-dev": {
16+
"psr-4": {
17+
"Glpi\\Tools\\": "../../tools/src/"
18+
}
1819
}
1920
}

0 commit comments

Comments
 (0)