Skip to content

Commit

Permalink
Merge pull request #100 from voku/arrayy-update
Browse files Browse the repository at this point in the history
update Arrayy + add PhpCsFixer + add PhpStan
  • Loading branch information
sabas authored Jan 21, 2020
2 parents 4508e5b + 3fc4cc3 commit 4fcac7a
Show file tree
Hide file tree
Showing 19 changed files with 2,033 additions and 911 deletions.
816 changes: 809 additions & 7 deletions .editorconfig

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml export-ignore
/phpcs.php_cs export-ignore
/phpstan.neon export-ignore
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,22 @@ matrix:
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
- php: nightly

before_script:
- php --version
- wget https://scrutinizer-ci.com/ocular.phar
- travis_retry composer self-update
- travis_retry composer require satooshi/php-coveralls:1.0.0
- travis_retry composer require satooshi/php-coveralls
- if [ "$(phpenv version-name)" == 7.3 ]; then travis_retry composer require phpstan/phpstan; fi
- travis_retry composer install --no-interaction --prefer-source
- composer dump-autoload -o

script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml --debug
- if [ "$(phpenv version-name)" == 7.3 ]; then php vendor/bin/phpstan analyse; fi

after_script:
- php vendor/bin/coveralls -v
Expand Down
33 changes: 19 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"name": "sabas/edifact",
"description": "Tools in PHP for UN/EDIFACT",
"keywords": ["EDI", "EDIFACT", "message", "container"],
"keywords": [
"EDI",
"EDIFACT",
"message",
"container"
],
"homepage": "https://github.com/php-edifact/edifact",
"license": "LGPL-3.0-or-later",
"authors": [
Expand All @@ -20,28 +25,28 @@
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/php-edifact/edifact/issues"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/php-edifact/edifact"
}
],
"require": {
"php": ">=7.0.0",
"ext-simplexml": "*",
"ext-json": "*",
"voku/arrayy": "5.*"
"ext-simplexml": "*",
"voku/arrayy": "~7.1"
},
"require-dev": {
"phpunit/phpunit": "~6.0",
"php-edifact/edifact-mapping": "dev-master"
"php-edifact/edifact-mapping": "dev-master",
"phpunit/phpunit": "~6.0"
},
"autoload": {
"psr-4": {
"EDI\\": "src/EDI/"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/php-edifact/edifact"
}
],
"support": {
"issues": "https://github.com/php-edifact/edifact/issues"
}
}
238 changes: 238 additions & 0 deletions phpcs.php_cs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
level: max
checkMissingIterableValueType: false
paths:
- %currentWorkingDirectory%/src/
ignoreErrors:
Loading

0 comments on commit 4fcac7a

Please sign in to comment.