Skip to content

Commit 6f056be

Browse files
committed
Allow Symfony 5 and switch to composer-bin-plugin
1 parent ee14f6d commit 6f056be

File tree

11 files changed

+4306
-11
lines changed

11 files changed

+4306
-11
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
/.editorconfig export-ignore
1111
/phpstan.neon export-ignore
1212
/psalm.xml export-ignore
13-
/psalm-baseline.xml export-ignore
13+
/psalm-baseline.xml export-ignore
14+
/vendor-bin export-ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/.idea
22
/composer.lock
33
/vendor
4+
/vendor-bin/**/vendor
45
/.phpunit*
56
/tests/_output
67
/tests/_reports

composer.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,15 @@
2121
],
2222
"require": {
2323
"php": "^7.2",
24-
"symfony/dependency-injection": "^4.0",
24+
"symfony/dependency-injection": "^4.0|^5.0",
2525
"squirrelphp/strings": "^0.8.2"
2626
},
2727
"require-dev": {
28-
"captainhook/plugin-composer": "^4.0",
29-
"diablomedia/phpunit-pretty-printer": "^4.0",
30-
"phpstan/phpstan": "^0.11.5",
31-
"phpunit/phpunit": "^8.0",
32-
"slevomat/coding-standard": "^5.0",
33-
"squizlabs/php_codesniffer": "^3.2",
34-
"vimeo/psalm": "^3.2",
28+
"bamarni/composer-bin-plugin": "^1.3",
29+
"captainhook/plugin-composer": "^4.0|^5.0",
3530
"doctrine/annotations": "^1.5",
36-
"symfony/form": "^4.0",
37-
"symfony/twig-bundle": "^4.0"
31+
"symfony/form": "^4.0|^5.0",
32+
"symfony/twig-bundle": "^4.0|^5.0"
3833
},
3934
"suggest": {
4035
"squirrelphp/strings-bundle": "Symfony integration of squirrelphp/strings"
@@ -53,6 +48,9 @@
5348
}
5449
},
5550
"scripts": {
51+
"bin": "echo 'bin not installed'",
52+
"post-install-cmd": ["@composer bin all install --ansi"],
53+
"post-update-cmd": ["@composer bin all update --ansi"],
5654
"phpstan": "vendor/bin/phpstan analyse src --level=7",
5755
"psalm": "vendor/bin/psalm --show-info=false",
5856
"psalm_base": "vendor/bin/psalm --set-baseline=psalm-baseline.xml",

vendor-bin/phpcs/composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"require": {
3+
"squizlabs/php_codesniffer": "^3.5",
4+
"slevomat/coding-standard": "^5.0"
5+
}
6+
}

vendor-bin/phpcs/composer.lock

Lines changed: 156 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor-bin/phpstan/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"phpstan/phpstan": "^0.11.19"
4+
}
5+
}

0 commit comments

Comments
 (0)