Skip to content

Commit cfa0a09

Browse files
committed
Feature GLP11
1 parent e283c25 commit cfa0a09

32 files changed

+4108
-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: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
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/tools": "^0.7.5",
9+
"php-parallel-lint/php-parallel-lint": "^1.4"
710
},
811
"config": {
912
"optimize-autoloader": true,
1013
"platform": {
11-
"php": "7.4.0"
14+
"php": "8.2.99"
1215
},
13-
"sort-packages": true
16+
"sort-packages": true,
17+
"allow-plugins": {
18+
"phpstan/extension-installer": true
19+
}
20+
},
21+
"autoload-dev": {
22+
"psr-4": {
23+
"Glpi\\Tools\\": "../../tools/src/"
24+
}
1425
}
1526
}

0 commit comments

Comments
 (0)