From a33a44a97c8bc9aa3f05bfb7dc18bf35fa5a70fb Mon Sep 17 00:00:00 2001 From: Ion Bazan Date: Wed, 8 Oct 2025 21:59:12 +0800 Subject: [PATCH] PHP 8.5 compatibility --- .github/workflows/tests.yml | 4 ++-- src/SchemaLoader.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 37b06f9..913a436 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] + php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5] name: PHP ${{ matrix.php }} @@ -32,4 +32,4 @@ jobs: run: composer update --no-interaction --no-progress - name: Execute tests - run: composer run tests \ No newline at end of file + run: composer run tests diff --git a/src/SchemaLoader.php b/src/SchemaLoader.php index 1a2418d..231af82 100644 --- a/src/SchemaLoader.php +++ b/src/SchemaLoader.php @@ -242,7 +242,7 @@ protected function resolve(Uri $uri): ?Schema */ protected function checkExistingObject(object $data): ?Schema { - if (!$this->dataCache->contains($data)) { + if (!$this->dataCache->offsetExists($data)) { return null; } @@ -444,4 +444,4 @@ protected function createSchemaId($data): string return "schema:///{$data}.json"; } -} \ No newline at end of file +}