Skip to content

Commit 4fcac7a

Browse files
authored
Merge pull request #100 from voku/arrayy-update
update Arrayy + add PhpCsFixer + add PhpStan
2 parents 4508e5b + 3fc4cc3 commit 4fcac7a

19 files changed

+2033
-911
lines changed

.editorconfig

+809-7
Large diffs are not rendered by default.

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
/.gitignore export-ignore
77
/.travis.yml export-ignore
88
/phpunit.xml export-ignore
9+
/phpcs.php_cs export-ignore
10+
/phpstan.neon export-ignore

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@ matrix:
1111
- php: 7.1
1212
- php: 7.2
1313
- php: 7.3
14+
- php: 7.4
1415
- php: nightly
1516

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

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

2831
after_script:
2932
- php vendor/bin/coveralls -v

composer.json

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"name": "sabas/edifact",
33
"description": "Tools in PHP for UN/EDIFACT",
4-
"keywords": ["EDI", "EDIFACT", "message", "container"],
4+
"keywords": [
5+
"EDI",
6+
"EDIFACT",
7+
"message",
8+
"container"
9+
],
510
"homepage": "https://github.com/php-edifact/edifact",
611
"license": "LGPL-3.0-or-later",
712
"authors": [
@@ -20,28 +25,28 @@
2025
"role": "Developer"
2126
}
2227
],
23-
"support": {
24-
"issues": "https://github.com/php-edifact/edifact/issues"
25-
},
26-
"repositories": [
27-
{
28-
"type": "vcs",
29-
"url": "https://github.com/php-edifact/edifact"
30-
}
31-
],
3228
"require": {
3329
"php": ">=7.0.0",
34-
"ext-simplexml": "*",
3530
"ext-json": "*",
36-
"voku/arrayy": "5.*"
31+
"ext-simplexml": "*",
32+
"voku/arrayy": "~7.1"
3733
},
3834
"require-dev": {
39-
"phpunit/phpunit": "~6.0",
40-
"php-edifact/edifact-mapping": "dev-master"
35+
"php-edifact/edifact-mapping": "dev-master",
36+
"phpunit/phpunit": "~6.0"
4137
},
4238
"autoload": {
4339
"psr-4": {
4440
"EDI\\": "src/EDI/"
4541
}
42+
},
43+
"repositories": [
44+
{
45+
"type": "vcs",
46+
"url": "https://github.com/php-edifact/edifact"
47+
}
48+
],
49+
"support": {
50+
"issues": "https://github.com/php-edifact/edifact/issues"
4651
}
4752
}

phpcs.php_cs

+238
Large diffs are not rendered by default.

phpstan.neon

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
level: max
3+
checkMissingIterableValueType: false
4+
paths:
5+
- %currentWorkingDirectory%/src/
6+
ignoreErrors:

0 commit comments

Comments
 (0)