Skip to content

Commit

Permalink
Allow Symfony 5 and switch to composer-bin-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
iquito committed Nov 29, 2019
1 parent ee14f6d commit 6f056be
Show file tree
Hide file tree
Showing 11 changed files with 4,306 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
/.editorconfig export-ignore
/phpstan.neon export-ignore
/psalm.xml export-ignore
/psalm-baseline.xml export-ignore
/psalm-baseline.xml export-ignore
/vendor-bin export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.idea
/composer.lock
/vendor
/vendor-bin/**/vendor
/.phpunit*
/tests/_output
/tests/_reports
Expand Down
18 changes: 8 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,15 @@
],
"require": {
"php": "^7.2",
"symfony/dependency-injection": "^4.0",
"symfony/dependency-injection": "^4.0|^5.0",
"squirrelphp/strings": "^0.8.2"
},
"require-dev": {
"captainhook/plugin-composer": "^4.0",
"diablomedia/phpunit-pretty-printer": "^4.0",
"phpstan/phpstan": "^0.11.5",
"phpunit/phpunit": "^8.0",
"slevomat/coding-standard": "^5.0",
"squizlabs/php_codesniffer": "^3.2",
"vimeo/psalm": "^3.2",
"bamarni/composer-bin-plugin": "^1.3",
"captainhook/plugin-composer": "^4.0|^5.0",
"doctrine/annotations": "^1.5",
"symfony/form": "^4.0",
"symfony/twig-bundle": "^4.0"
"symfony/form": "^4.0|^5.0",
"symfony/twig-bundle": "^4.0|^5.0"
},
"suggest": {
"squirrelphp/strings-bundle": "Symfony integration of squirrelphp/strings"
Expand All @@ -53,6 +48,9 @@
}
},
"scripts": {
"bin": "echo 'bin not installed'",
"post-install-cmd": ["@composer bin all install --ansi"],
"post-update-cmd": ["@composer bin all update --ansi"],
"phpstan": "vendor/bin/phpstan analyse src --level=7",
"psalm": "vendor/bin/psalm --show-info=false",
"psalm_base": "vendor/bin/psalm --set-baseline=psalm-baseline.xml",
Expand Down
6 changes: 6 additions & 0 deletions vendor-bin/phpcs/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": {
"squizlabs/php_codesniffer": "^3.5",
"slevomat/coding-standard": "^5.0"
}
}
156 changes: 156 additions & 0 deletions vendor-bin/phpcs/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"phpstan/phpstan": "^0.11.19"
}
}
Loading

0 comments on commit 6f056be

Please sign in to comment.