Skip to content

Commit 01be533

Browse files
xepozzvjik
andauthored
Add composer-require-checker CI (#84)
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
1 parent f9783c0 commit 01be533

4 files changed

Lines changed: 43 additions & 0 deletions

File tree

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']

composer-require-checker.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"symbol-whitelist": [
3+
"transliterator_transliterate",
4+
"filter_var",
5+
"FILTER_VALIDATE_INT"
6+
]
7+
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"ext-mbstring": "*"
2323
},
2424
"require-dev": {
25+
"maglnet/composer-require-checker": "^4.2",
2526
"phpunit/phpunit": "^9.5",
2627
"rector/rector": "^0.18.3",
2728
"roave/infection-static-analysis-plugin": "^1.16",

src/NumericHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public static function normalize(mixed $value): string
6868

6969
/**
7070
* Checks whether the given string is an integer number.
71+
*
72+
* Require Filter PHP extension ({@see https://www.php.net/manual/intro.filter.php}).
7173
*/
7274
public static function isInteger(mixed $value): bool
7375
{

0 commit comments

Comments
 (0)