Skip to content

Commit 52686e4

Browse files
authored
Merge pull request #2 from moufmouf/multi_params
Fixing handling of ... params
2 parents 11a6b67 + 279eefd commit 52686e4

25 files changed

+4386
-16071
lines changed

.travis.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,27 @@ matrix:
55
env: PREFER_LOWEST=""
66
- php: 7.1
77
env: PREFER_LOWEST=""
8-
# - php: 7.1
9-
# env: PREFER_LOWEST="--prefer-lowest"
8+
9+
cache:
10+
directories:
11+
- doc/doc-en
12+
- vendor
13+
- $HOME/.composer
1014

1115
before_script:
12-
- composer update $PREFER_LOWEST --no-interaction
16+
- composer install --no-interaction
1317
- mkdir -p build/logs
18+
- |
19+
if [ ! -d "doc/doc-en/en" ]; then
20+
cd doc
21+
svn co https://svn.php.net/repository/phpdoc/modules/doc-en doc-en
22+
cd ..
23+
else
24+
cd doc/doc-en
25+
svn update
26+
cd ../..
27+
fi
28+
1429
script:
1530
- "./vendor/bin/phpunit"
1631
#- "./vendor/bin/composer-require-checker --config-file=composer-require-checker.json"

composer.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
11
{
2-
"name": "Julien",
2+
"name": "thecodingmachine/safe",
33
"description": "Create a list of functional PHP functions which return false on error",
44
"autoload": {
5+
"psr-4": {
6+
"Safe\\": ["lib/", "generated/"]
7+
}
8+
},
9+
"autoload-dev": {
510
"psr-4": {
611
"Safe\\": "src/"
712
}
813
},
914
"require-dev": {
1015
"php": ">=7.1",
16+
"ext-simplexml": "*",
1117
"phpunit/phpunit": "^7",
1218
"phpstan/phpstan": "^0.10.2",
1319
"thecodingmachine/phpstan-strict-rules": "^0.10",
1420
"phpoffice/phpspreadsheet": "^1.4",
15-
"ext-json": "^1.5"
21+
"ext-json": "^1.5",
22+
"symfony/console": "^4.1.4",
23+
"squizlabs/php_codesniffer": "^3.2",
24+
"php-coveralls/php-coveralls": "^2.1"
1625
},
1726
"scripts": {
18-
"phpstan": "phpstan analyse src -c phpstan.neon --level=7 --no-progress -vvv"
27+
"phpstan": "phpstan analyse src -c phpstan.neon --level=7 --no-progress -vvv",
28+
"cs-fix": "phpcbf",
29+
"cs-check": "phpcs"
1930
},
2031
"require": {
2132
}

0 commit comments

Comments
 (0)