diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5f67cc4f..a172a2cf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['8.2', '8.3', '8.4'] + php: ['8.2', '8.3', '8.4', '8.5'] fail-fast: false diff --git a/composer.json b/composer.json index f2b8fc50..dd055979 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": "8.2 - 8.4" + "php": "8.2 - 8.5" }, "require-dev": { "tracy/tracy": "^2.9", diff --git a/readme.md b/readme.md index 47fb7fa4..a0a86310 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ Install Dibi via Composer: composer require dibi/dibi ``` -The Dibi 5.1 requires PHP version 8.2 and supports PHP up to 8.4. +The Dibi 5.1 requires PHP version 8.2 and supports PHP up to 8.5. Usage diff --git a/src/Dibi/Connection.php b/src/Dibi/Connection.php index 916d0956..14fc0320 100644 --- a/src/Dibi/Connection.php +++ b/src/Dibi/Connection.php @@ -673,7 +673,7 @@ class Connection implements IConnection /** * Prevents unserialization. */ - public function __wakeup() + public function __unserialize($_) { throw new NotSupportedException('You cannot serialize or unserialize ' . static::class . ' instances.'); } @@ -682,7 +682,7 @@ class Connection implements IConnection /** * Prevents serialization. */ - public function __sleep() + public function __serialize() { throw new NotSupportedException('You cannot serialize or unserialize ' . static::class . ' instances.'); }