From 5af43f636348ac1ab9215ac8373952fdf82f784c Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 3 Dec 2020 14:32:30 -0500 Subject: [PATCH] Fix method signature for PHP 8 --- .travis.yml | 2 +- src/ConnectionManager.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e01e986..32a114d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ services: php: - 7.4 - - nightly + - 8 before_script: - psql -c 'DROP DATABASE IF EXISTS test;' -U postgres diff --git a/src/ConnectionManager.php b/src/ConnectionManager.php index e1a0fa6..d049235 100644 --- a/src/ConnectionManager.php +++ b/src/ConnectionManager.php @@ -59,9 +59,8 @@ final class ConnectionManager { * Prevent serialization of this object * * @throws DomainException - * @return void */ - public function __sleep(): void + public function __sleep() { throw new DomainException('No serializing of singleton'); }