Skip to content

Commit 1300d18

Browse files
authored
Merge pull request #7 from samsonasik/allow-web-as
Allow webmozart/assert ^2.1
2 parents e260810 + 27ede17 commit 1300d18

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.github/workflows/ci_build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010
build:
11-
name: PHP ${{ matrix.php-versions }}
11+
name: PHP ${{ matrix.php-versions }} (${{ matrix.dependency-version }})
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: ['8.1', '8.2']
16+
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
17+
dependency-version: ['lowest', 'latest']
1718
steps:
1819
- name: Setup PHP Action
1920
uses: shivammathur/setup-php@v2
@@ -25,7 +26,12 @@ jobs:
2526
uses: actions/checkout@v2
2627
- run: "composer validate"
2728
- name: "Install dependencies"
28-
run: "composer install --prefer-dist"
29+
run: |
30+
if [ "${{ matrix.dependency-version }}" = "lowest" ]; then
31+
composer update --prefer-dist --prefer-lowest --prefer-stable --no-interaction
32+
else
33+
composer install --prefer-dist --no-interaction
34+
fi
2935
- name: "CS Check"
3036
run: "composer cs-check"
3137
- name: "Code analyze"

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
],
2323
"require": {
2424
"php": "^8.1",
25-
"laminas/laminas-filter": "^3.0",
26-
"laminas/laminas-validator": "^3.0",
27-
"samsonasik/array-lookup": "^1.3 || ^2.0",
28-
"symfony/polyfill-mbstring": "^1.27",
29-
"webmozart/assert": "^1.11"
25+
"laminas/laminas-filter": "^3.2",
26+
"laminas/laminas-validator": "^3.8",
27+
"samsonasik/array-lookup": "^1.8 || ^2.2",
28+
"symfony/polyfill-mbstring": "^1.33",
29+
"webmozart/assert": "^1.11 || ^2.1"
3030
},
3131
"require-dev": {
32-
"kahlan/kahlan": "^5.2.2",
33-
"laminas/laminas-coding-standard": "^3.0",
34-
"php-coveralls/php-coveralls": "^2.5.3",
35-
"phpstan/phpstan": "^2.0",
32+
"kahlan/kahlan": "^5.2.8",
33+
"laminas/laminas-coding-standard": "^3.1",
34+
"php-coveralls/php-coveralls": "^2.9.1",
35+
"phpstan/phpstan": "^2.1.33",
3636
"phpstan/phpstan-webmozart-assert": "^2.0",
3737
"rector/rector": "dev-main",
38-
"squizlabs/php_codesniffer": "^3.7.1"
38+
"squizlabs/php_codesniffer": "^3.13.5"
3939
},
4040
"config": {
4141
"bin-dir": "bin",

src/Validator/Naming.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function isValid(mixed $value): bool
9999
"''" => self::CONSECUTIVE_APOSTROPHE,
100100
];
101101

102-
$filter = static fn(mixed $datum, int|string|null $key): bool
102+
$filter = static fn(mixed $datum, int|string|null $key = null): bool
103103
=> is_string($key) && str_contains($value, $key);
104104
$error = Finder::first($messageTemplates, $filter);
105105

0 commit comments

Comments
 (0)