Skip to content

Commit 0b2e1af

Browse files
committed
Feature GLP11
1 parent e283c25 commit 0b2e1af

32 files changed

+4313
-2175
lines changed

.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);

composer.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
{
22
"require": {
3-
"php": ">=7.4"
3+
"php": ">=8.2"
44
},
55
"require-dev": {
6-
"glpi-project/tools": "^0.5"
6+
"friendsofphp/php-cs-fixer": "^3.75",
7+
"friendsoftwig/twigcs": "^6.1",
8+
"glpi-project/phpstan-glpi": "^1.0",
9+
"glpi-project/tools": "^0.7.5",
10+
"php-parallel-lint/php-parallel-lint": "^1.4",
11+
"phpstan/extension-installer": "^1.4",
12+
"phpstan/phpstan": "^2.1",
13+
"phpstan/phpstan-deprecation-rules": "^2.0"
714
},
815
"config": {
916
"optimize-autoloader": true,
1017
"platform": {
11-
"php": "7.4.0"
18+
"php": "8.2.99"
1219
},
13-
"sort-packages": true
20+
"sort-packages": true,
21+
"allow-plugins": {
22+
"phpstan/extension-installer": true
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"Glpi\\Tools\\": "../../tools/src/"
28+
}
1429
}
1530
}

0 commit comments

Comments
 (0)