Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

.env
###> symfony/framework-bundle ###
/.env.local
/.env.local.php
Expand All @@ -8,12 +8,6 @@
/var/
/vendor/
###< symfony/framework-bundle ###

###> friendsofphp/php-cs-fixer ###
/.php_cs
/.php_cs.cache
###< friendsofphp/php-cs-fixer ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
Expand Down
13 changes: 13 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
])
->setFinder($finder)
;
21 changes: 11 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.4",
"php": "^7.4 || ^8.0",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/doctrine-fixtures-bundle": "^3.3",
Expand All @@ -16,15 +16,14 @@
"ext-json": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"infection/infection": "^0.16.4",
"friendsofphp/php-cs-fixer": "^3",
"infection/infection": "^0.23.0",
"phpstan/phpstan": "^0.12.30",
"phpstan/phpstan-doctrine": "^0.12.17",
"phpstan/phpstan-phpunit": "^0.12.11",
"phpstan/phpstan-symfony": "^0.12.6",
"phpunit/phpunit": "^9.2",
"sensiolabs/security-checker": "^6.0",
"vimeo/psalm": "^3.11"
"vimeo/psalm": "^4.7"
},
"config": {
"optimize-autoloader": true,
Expand Down Expand Up @@ -55,14 +54,15 @@
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"security-checker security:check": "script"
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
"@auto-scripts",
"@security-check"
],
"post-update-cmd": [
"@auto-scripts"
"@auto-scripts",
"@security-check"
],
"phpstan": [
"@run-static-analysis"
Expand All @@ -85,6 +85,7 @@
"@phpcs",
"@phpstan"
],
"security-check": "docker run --platform linux/x86_64 --rm -v $(pwd):$(pwd) -w $(pwd) symfonycorp/cli security:check",
"run-static-analysis": "phpstan analyse src tests/phpunit --level 7",
"test": "phpunit --colors=always",
"test-coverage-complete": "phpunit --colors=always --coverage-html=tests/coverage/ ",
Expand All @@ -98,7 +99,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.1.*"
"require": "5.2.*"
}
}
}
Loading