Skip to content

Commit 228c0b8

Browse files
authored
Updated dependecies, cleanup tools (#479)
1 parent 3571fc2 commit 228c0b8

29 files changed

+8294
-4325
lines changed

.github/dependabot.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ updates:
55
schedule:
66
interval: "daily"
77
- package-ecosystem: "composer"
8-
directory: "/tools"
8+
directory: "/tools/cs-fixer"
99
schedule:
10-
interval: "daily"
10+
interval: "monthly"
11+
- package-ecosystem: "composer"
12+
directory: "/tools/infection"
13+
schedule:
14+
interval: "monthly"
15+
- package-ecosystem: "composer"
16+
directory: "/tools/phpbench"
17+
schedule:
18+
interval: "monthly"
19+
- package-ecosystem: "composer"
20+
directory: "/tools/phpstan"
21+
schedule:
22+
interval: "monthly"
23+
- package-ecosystem: "composer"
24+
directory: "/tools/psalm"
25+
schedule:
26+
interval: "monthly"

.github/workflows/automation-changelog-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Automation - Changelog Update"
33
on:
44
push:
55
branches:
6-
- "3.x"
6+
- "6.x"
77

88
jobs:
99
automation:

composer.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@
2424
"doctrine/lexer": "^3.0"
2525
},
2626
"require-dev": {
27-
"ext-pcov": "*",
2827
"phpunit/phpunit": "^10.4",
2928
"openlss/lib-array2xml": "^1.0",
30-
"symfony/expression-language": "^2.3|^3.0|^4.0|^5.0|^6.0",
31-
"symfony/cache": "^2.3|^3.0|^4.0|^5.0|^6.0",
32-
"nikic/php-parser": "^4.18",
33-
"symfony/var-exporter": "^2.3|^3.0|^4.0|^5.0|^6.0"
29+
"symfony/expression-language": "^5.4|^6.4|^7.0",
30+
"symfony/cache": "^5.4|^6.4",
31+
"nikic/php-parser": "^4.0",
32+
"symfony/var-exporter": "^5.4|^6.4|^7.0"
3433
},
3534
"suggest": {
3635
"openlss/lib-array2xml": "In order ot use Coduo\\PHPMatcher\\Matcher\\XmlMatcher",
@@ -53,34 +52,47 @@
5352
"scripts": {
5453
"benchmark": [
5554
"Composer\\Config::disableProcessTimeout",
56-
"tools\/phpbench run --report=matcher"
55+
"tools\/phpbench\/vendor\/bin\/phpbench run --report=matcher"
5756
],
5857
"build": [
5958
"@static:analyze",
6059
"@test",
6160
"@test:mutation"
6261
],
6362
"cs:php:fix": [
64-
"tools\/vendor\/bin\/php-cs-fixer fix --using-cache=no"
63+
"tools\/cs-fixer\/vendor\/bin\/php-cs-fixer fix --using-cache=no"
6564
],
6665
"test" : [
6766
"vendor\/bin\/phpunit --coverage-html var/phpunit/coverage/html --coverage-filter src"
6867
],
6968
"test:mutation": [
7069
"Composer\\Config::disableProcessTimeout",
71-
"tools\/vendor\/bin\/infection"
70+
"tools\/infection\/vendor\/bin\/infection -j2"
7271
],
7372
"static:analyze": [
74-
"tools\/vendor\/bin\/psalm --shepherd --stats",
75-
"tools\/vendor\/bin\/phpstan analyze -c phpstan.neon",
76-
"tools\/vendor\/bin\/php-cs-fixer fix --dry-run"
73+
"tools\/cs-fixer\/vendor\/bin\/php-cs-fixer fix --dry-run",
74+
"tools\/psalm\/vendor\/bin\/psalm --shepherd --stats",
75+
"tools\/phpstan\/vendor\/bin\/phpstan analyze -c phpstan.neon"
76+
],
77+
"tools:install": [
78+
"composer install --working-dir=./tools/cs-fixer",
79+
"composer install --working-dir=./tools/infection",
80+
"composer install --working-dir=./tools/phpbench",
81+
"composer install --working-dir=./tools/phpstan",
82+
"composer install --working-dir=./tools/psalm"
83+
],
84+
"tools:update": [
85+
"composer update --working-dir=./tools/cs-fixer",
86+
"composer update --working-dir=./tools/infection",
87+
"composer update --working-dir=./tools/phpbench",
88+
"composer update --working-dir=./tools/phpstan",
89+
"composer update --working-dir=./tools/psalm"
7790
],
78-
"tools:install": "composer install --working-dir=./tools",
7991
"post-install-cmd": [
8092
"@tools:install"
8193
],
8294
"post-update-cmd": [
83-
"@tools:install"
95+
"@tools:update"
8496
]
8597
}
8698
}

composer.lock

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpbench.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
{
2-
"bootstrap": "./vendor/autoload.php",
3-
"path": "benchmark",
4-
"retry_threshold": 5,
5-
"progress": "dots",
6-
"reports": {
2+
"runner.bootstrap": "./vendor/autoload.php",
3+
"runner.path": "benchmark",
4+
"runner.retry_threshold": 5,
5+
"runner.progress": "dots",
6+
"report.generators": {
77
"matcher": {
8-
"generator": "table",
9-
"break": ["benchmark"],
10-
"sort": {"mean": "asc"}
8+
"generator": "expression",
9+
"cols": {
10+
"benchmark": null,
11+
"subject": null,
12+
"revs": null,
13+
"its": null,
14+
"mem_peak": null,
15+
"mode": null,
16+
"rstdev": null
17+
}
1118
}
1219
},
13-
"xml_storage_path": "./var/phpbench"
20+
"storage.xml_storage_path": "./var/phpbench"
1421
}

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
bootstrap="vendor/autoload.php"
66
cacheDirectory=".phpunit.cache"
77
>
8+
<source>
9+
<include>
10+
<directory>./src</directory>
11+
</include>
12+
</source>
813
<testsuites>
914
<testsuite name="unit">
1015
<directory>./tests/</directory>

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
cacheDirectory="var/psalm/cache"
9+
findUnusedBaselineEntry="false"
10+
findUnusedCode="false"
911
>
1012
<projectFiles>
1113
<directory name="src" />

0 commit comments

Comments
 (0)