Skip to content

Commit 0ceab3c

Browse files
committed
Compatibility with graphpinator 2.0
1 parent ba093be commit 0ceab3c

68 files changed

Lines changed: 1264 additions & 888 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/php.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,25 @@ jobs:
109109

110110
- name: Codestyle
111111
run: composer run-script codestyle
112+
113+
dependencies:
114+
runs-on: ubuntu-latest
115+
116+
steps:
117+
- uses: actions/checkout@v2
118+
119+
- name: Setup PHP
120+
uses: shivammathur/setup-php@v2
121+
with:
122+
php-version: '8.5'
123+
env:
124+
update: true
125+
126+
- name: Validate composer.json and composer.lock
127+
run: composer validate
128+
129+
- name: Install dependencies
130+
run: composer install --prefer-dist --no-progress --no-suggest
131+
132+
- name: Dependencies
133+
run: composer run-script dependencies

composer.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,24 @@
1212
}
1313
],
1414
"require": {
15-
"infinityloop-dev/graphpinator": "^1.6",
16-
"infinityloop-dev/graphpinator-constraint-directives": "^1.2",
17-
"infinityloop-dev/utils": "^2.3"
15+
"php": ">=8.2",
16+
"ext-filter": "*",
17+
"infinityloop-dev/graphpinator": "^2.0",
18+
"infinityloop-dev/graphpinator-constraint-directives": "^2.0",
19+
"infinityloop-dev/utils": "^2.3",
20+
"infinityloop-dev/graphpinator-common": "^2.0"
1821
},
1922
"require-dev": {
20-
"phpunit/phpunit": "^10.4 || ^12.0",
21-
"infection/infection": "^0.27 || ^0.30 || ^0.31",
23+
"infection/infection": "^0.29",
24+
"infinityloop-dev/graphpinator-tokenizer": "^1.3",
25+
"phpstan/extension-installer": "^1.4",
2226
"phpstan/phpstan": "^2.0",
23-
"webthinx/codestyle": "^1.0"
27+
"phpstan/phpstan-deprecation-rules": "^2.0",
28+
"phpstan/phpstan-strict-rules": "^2.0",
29+
"phpunit/phpunit": "^10.4",
30+
"shipmonk/composer-dependency-analyser": "^1.8",
31+
"thecodingmachine/phpstan-safe-rule": "^1.4",
32+
"webthinx/codestyle": "^1.1"
2433
},
2534
"scripts": {
2635
"phpunit": "phpunit tests",
@@ -29,10 +38,11 @@
2938
"infection -j$(nproc)"
3039
],
3140
"phpstan": "phpstan analyze --level 8 src",
32-
"phpstan-next": "phpstan analyze --level 8 src",
41+
"phpstan-next": "phpstan analyze --level 9 src",
3342
"phpstan-max": "phpstan analyze --level max src",
3443
"codestyle": "phpcs src tests",
35-
"codestyle-fix": "phpcbf src tests"
44+
"codestyle-fix": "phpcbf src tests",
45+
"dependencies": "composer-dependency-analyser"
3646
},
3747
"autoload": {
3848
"psr-4": {
@@ -44,10 +54,12 @@
4454
"Graphpinator\\ExtraTypes\\Tests\\": "tests/"
4555
}
4656
},
57+
"minimum-stability": "RC",
4758
"config": {
4859
"allow-plugins": {
4960
"dealerdirect/phpcodesniffer-composer-installer": true,
50-
"infection/extension-installer": true
61+
"infection/extension-installer": true,
62+
"phpstan/extension-installer": true
5163
}
5264
}
5365
}

0 commit comments

Comments
 (0)