Skip to content

Commit

Permalink
optimize composer
Browse files Browse the repository at this point in the history
  • Loading branch information
lezhnev74 committed Aug 30, 2020
1 parent fbb6592 commit ec3042e
Show file tree
Hide file tree
Showing 6 changed files with 1,220 additions and 2,368 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ docker-compose.yml export-ignore
.travis.yml export-ignore
pasvl.jpg export-ignore
phpcs.xml export-ignore
phpunit.xml export-ignore
phpunit.xml export-ignore
composer-unused.phar export-ignore
.phan export-ignore
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "[PRE-COMMIT] Started..."
PHPCS_BIN="./develop php ./vendor/bin/phpcs"
PHPCS_LOG=./.qa-report.txt
PHPCBF_BIN="./develop php ./vendor/bin/phpcbf"
UNUSED_COMPOSER="./develop composer unused --no-progress --no-cache"
UNUSED_COMPOSER="./develop php composer-unused.phar --no-progress --no-cache"

#########################
# #
Expand Down
5 changes: 2 additions & 3 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
// Note that the **only** effect of choosing `'5.6'` is to infer
// that functions removed in php 7.0 exist.
// (See `backward_compatibility_checks` for additional options)
// TODO: Set this.
'target_php_version' => null,
'target_php_version' => '7.1',

// A list of directories that should be parsed for class and
// method information. After excluding the directories
Expand All @@ -28,7 +27,7 @@
'directory_list' => [
'src',
'tests',
'vendor'
'vendor',
],

// A regex used to match every file name that you want to
Expand Down
Binary file added composer-unused.phar
Binary file not shown.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.2|^7.0",
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.5",
"phpstan/phpstan-webmozart-assert": "^0.12.7",
"icanhazstring/composer-unused": "^0.7.3",
"phan/phan": "^3.2"
},
"autoload": {
Expand Down
Loading

0 comments on commit ec3042e

Please sign in to comment.