Skip to content

Commit e3cd5a3

Browse files
authored
[Batch] Add composer-require-checker CI (#65)
1 parent 3f0758a commit e3cd5a3

File tree

5 files changed

+57
-1
lines changed

5 files changed

+57
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
pull_request:
3+
paths-ignore:
4+
- 'docs/**'
5+
- 'README.md'
6+
- 'CHANGELOG.md'
7+
- '.gitignore'
8+
- '.gitattributes'
9+
- 'infection.json.dist'
10+
- 'phpunit.xml.dist'
11+
- 'psalm.xml'
12+
13+
push:
14+
paths-ignore:
15+
- 'docs/**'
16+
- 'README.md'
17+
- 'CHANGELOG.md'
18+
- '.gitignore'
19+
- '.gitattributes'
20+
- 'infection.json.dist'
21+
- 'phpunit.xml.dist'
22+
- 'psalm.xml'
23+
24+
name: Composer require checker
25+
26+
jobs:
27+
composer-require-checker:
28+
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
29+
with:
30+
os: >-
31+
['ubuntu-latest']
32+
php: >-
33+
['8.0', '8.1', '8.2']

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 2.2.0 under development
44

5+
- Enh #65: Explicitly add transitive dependencies `ext-mbstring`, `psr/http-factory` and
6+
`psr/http-server-handler` (@vjik)
57
- Chg #64: Raise PHP version to `^8.0` (@vjik, @xepozz)
68

79
## 2.1.1 January 26, 2023

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The package provides advanced error handling. The features are:
3333
- PHP 8.0 or higher.
3434
- `DOM` PHP extension.
3535
- `JSON` PHP extension.
36+
- `mbstring` PHP extension.
3637

3738
## Installation
3839

composer-require-checker.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"symbol-whitelist" : [
3+
"xdebug_get_function_stack"
4+
],
5+
"php-core-extensions" : [
6+
"Core",
7+
"date",
8+
"json",
9+
"pcre",
10+
"Phar",
11+
"Reflection",
12+
"SPL",
13+
"random",
14+
"standard"
15+
],
16+
"scan-files" : []
17+
}

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
"php": "^8.0",
2525
"ext-dom": "*",
2626
"ext-json": "*",
27+
"ext-mbstring": "*",
2728
"alexkart/curl-builder": "^1.0",
2829
"cebe/markdown": "^1.2",
2930
"psr/container": "^1.0|^2.0",
31+
"psr/http-factory": "^1.0",
3032
"psr/http-message": "^1.0",
33+
"psr/http-server-handler": "^1.0",
3134
"psr/http-server-middleware": "^1.0",
3235
"psr/log": "^1.1|^2.0|^3.0",
3336
"yiisoft/friendly-exception": "^1.0",
@@ -36,8 +39,8 @@
3639
},
3740
"require-dev": {
3841
"httpsoft/http-message": "^1.0.9",
42+
"maglnet/composer-require-checker": "^4.4",
3943
"phpunit/phpunit": "^9.5",
40-
"psr/http-server-handler": "^1.0",
4144
"rector/rector": "^0.15.10",
4245
"roave/infection-static-analysis-plugin": "^1.16",
4346
"spatie/phpunit-watcher": "^1.23",

0 commit comments

Comments
 (0)