From b61737311eb798a2af7585f778ca8470d6d2c5b2 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 6 Sep 2022 04:18:39 +0200 Subject: [PATCH] support for PHP 8.2 --- .github/workflows/tests.yml | 2 +- readme.md | 2 +- src/Dibi/HashMap.php | 1 + src/Dibi/Row.php | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5ac1fdc6..535cbebe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] fail-fast: false diff --git a/readme.md b/readme.md index e0a96cb2..d9bf256a 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ Install Dibi via Composer: composer require dibi/dibi ``` -The Dibi 4.2 requires PHP version 7.2 and supports PHP up to 8.1. +The Dibi 4.2 requires PHP version 7.2 and supports PHP up to 8.2. Usage diff --git a/src/Dibi/HashMap.php b/src/Dibi/HashMap.php index 0f3b426a..df556e9d 100644 --- a/src/Dibi/HashMap.php +++ b/src/Dibi/HashMap.php @@ -14,6 +14,7 @@ namespace Dibi; * Lazy cached storage. * @internal */ +#[\AllowDynamicProperties] abstract class HashMapBase { /** @var callable */ diff --git a/src/Dibi/Row.php b/src/Dibi/Row.php index c5a7f25b..07dfd747 100644 --- a/src/Dibi/Row.php +++ b/src/Dibi/Row.php @@ -13,6 +13,7 @@ namespace Dibi; /** * Result set single row. */ +#[\AllowDynamicProperties] class Row implements \ArrayAccess, \IteratorAggregate, \Countable { public function __construct(array $arr)