Skip to content

Commit 1c59bfd

Browse files
authored
PHP 8.5 compatibility (#156)
1 parent b20e989 commit 1c59bfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
15+
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
1616

1717
name: PHP ${{ matrix.php }}
1818

@@ -32,4 +32,4 @@ jobs:
3232
run: composer update --no-interaction --no-progress
3333

3434
- name: Execute tests
35-
run: composer run tests
35+
run: composer run tests

src/SchemaLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ protected function resolve(Uri $uri): ?Schema
242242
*/
243243
protected function checkExistingObject(object $data): ?Schema
244244
{
245-
if (!$this->dataCache->contains($data)) {
245+
if (!$this->dataCache->offsetExists($data)) {
246246
return null;
247247
}
248248

@@ -444,4 +444,4 @@ protected function createSchemaId($data): string
444444

445445
return "schema:///{$data}.json";
446446
}
447-
}
447+
}

0 commit comments

Comments
 (0)