Skip to content

Commit 73ead05

Browse files
committed
Fix Composer plugin permissions; upgrade CS tool
1 parent 0e18d3f commit 73ead05

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
new Facile\CodingStandards\Rules\ArrayRulesProvider($additionalRules),
1414
]);
1515

16-
$config = PhpCsFixer\Config::create();
16+
$config = new PhpCsFixer\Config();
1717
$config->setRules($rulesProvider->getRules());
1818
$config->setRiskyAllowed(true);
1919

20-
$finder = PhpCsFixer\Finder::create();
20+
$finder = new PhpCsFixer\Finder();
2121

2222
$autoloadPathProvider = new Facile\CodingStandards\AutoloadPathProvider();
2323
$finder->in($autoloadPathProvider->getPaths());

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"type": "library",
55
"license": "MIT",
66
"config": {
7-
"sort-packages": true
7+
"sort-packages": true,
8+
"allow-plugins": {
9+
"facile-it/facile-coding-standard": true,
10+
"phpstan/extension-installer": true
11+
}
812
},
913
"bin": [
1014
"bin/terminable-loop-command.sh"
@@ -31,7 +35,7 @@
3135
"symfony/console": "^4.4 | ^5.4 | ^6.0"
3236
},
3337
"require-dev": {
34-
"facile-it/facile-coding-standard": "^0.4.0",
38+
"facile-it/facile-coding-standard": "^0.5.2",
3539
"jangregor/phpstan-prophecy": "^0.8.1",
3640
"phpstan/extension-installer": "^1.0",
3741
"phpstan/phpstan": "^0.12.55",

0 commit comments

Comments
 (0)