From 99028d8e442a0eedb621ce8623f22df1792a8c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sun, 19 Jan 2025 12:22:57 +0100 Subject: [PATCH] Improve PHP 8.2+ compatibility by avoiding leftover dynamic properties --- composer.json | 2 +- phpunit.xml.dist | 3 +++ phpunit.xml.legacy | 3 +++ src/Io/CompositeConnection.php | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8a2a994..0a838af 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": ">=5.3", - "clue/socks-react": "^1.4", + "clue/socks-react": "^1.5", "react/child-process": "^0.6", "react/event-loop": "^1.2", "react/promise": "^3 || ^2.1 || ^1.2.1", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b8cf10d..e1ce165 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -17,4 +17,7 @@ ./src/ + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index 756167d..0cdf7cc 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -15,4 +15,7 @@ ./src/ + + + diff --git a/src/Io/CompositeConnection.php b/src/Io/CompositeConnection.php index adb728a..e16815b 100644 --- a/src/Io/CompositeConnection.php +++ b/src/Io/CompositeConnection.php @@ -73,7 +73,6 @@ public function close() return; } - $this->remote = null; $this->closed = true; $this->read->close(); $this->write->close();