Skip to content

Commit d699f86

Browse files
committed
Allow Symfony 5 and switch to composer-bin-plugin
1 parent 41accda commit d699f86

File tree

11 files changed

+4304
-9
lines changed

11 files changed

+4304
-9
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
/.editorconfig export-ignore
1212
/phpstan.neon export-ignore
1313
/psalm.xml export-ignore
14-
/psalm-baseline.xml export-ignore
14+
/psalm-baseline.xml export-ignore
15+
/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: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,13 @@
2020
],
2121
"require": {
2222
"php": "^7.2",
23-
"symfony/validator": "^4.0",
23+
"symfony/validator": "^4.0|^5.0",
2424
"doctrine/annotations": "^1.6"
2525
},
2626
"require-dev": {
27+
"bamarni/composer-bin-plugin": "^1.3",
2728
"captainhook/plugin-composer": "^4.0",
28-
"diablomedia/phpunit-pretty-printer": "^4.0",
29-
"mockery/mockery": "^1.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"
29+
"mockery/mockery": "^1.0"
3530
},
3631
"config": {
3732
"sort-packages": false
@@ -48,6 +43,9 @@
4843
}
4944
},
5045
"scripts": {
46+
"bin": "echo 'bin not installed'",
47+
"post-install-cmd": ["@composer bin all install --ansi"],
48+
"post-update-cmd": ["@composer bin all update --ansi"],
5149
"phpstan": "vendor/bin/phpstan analyse src --level=7",
5250
"psalm": "vendor/bin/psalm --show-info=false",
5351
"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)