From b80a2586121cc8bdcee21105b09a5872ccdab901 Mon Sep 17 00:00:00 2001 From: Saif Eddin Gmati <29315886+azjezz@users.noreply.github.com> Date: Mon, 13 Jun 2022 15:34:01 +0100 Subject: [PATCH] Fix compatibility with PHP 8.2 (#58) --- src/EventLoop/Internal/DriverCallback.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventLoop/Internal/DriverCallback.php b/src/EventLoop/Internal/DriverCallback.php index 50a1117..b075229 100644 --- a/src/EventLoop/Internal/DriverCallback.php +++ b/src/EventLoop/Internal/DriverCallback.php @@ -24,7 +24,7 @@ public function __construct( */ public function __get(string $property): never { - throw new \Error("Unknown property '${property}'"); + throw new \Error("Unknown property '{$property}'"); } /** @@ -33,6 +33,6 @@ public function __get(string $property): never */ public function __set(string $property, mixed $value): never { - throw new \Error("Unknown property '${property}'"); + throw new \Error("Unknown property '{$property}'"); } }