Skip to content

Commit 2befc2f

Browse files
committed
support for PHP 8.5
1 parent 2c2f5e4 commit 2befc2f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['8.1', '8.2', '8.3', '8.4']
10+
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
1111

1212
fail-fast: false
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "8.1 - 8.4",
18+
"php": "8.1 - 8.5",
1919
"nette/utils": "^4.0"
2020
},
2121
"require-dev": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Installation:
2020
composer require nette/schema
2121
```
2222

23-
It requires PHP version 8.1 and supports PHP up to 8.4.
23+
It requires PHP version 8.1 and supports PHP up to 8.5.
2424

2525

2626
[Support Me](https://github.com/sponsors/dg)

src/Schema/Elements/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function validateItems(array &$value, Context $context): void
201201
$context->isKey = true;
202202
$key = $this->itemsKey ? $this->itemsKey->complete($key, $context) : $key;
203203
$context->isKey = false;
204-
$res[$key] = $this->itemsValue->complete($val, $context);
204+
$res[$key ?? ''] = $this->itemsValue->complete($val, $context);
205205
array_pop($context->path);
206206
}
207207
$value = $res;

0 commit comments

Comments
 (0)