From e9f51b657826684b39fafad53f5456d35e4b0109 Mon Sep 17 00:00:00 2001 From: Saju Varghese Date: Sun, 8 Feb 2026 20:30:33 -0800 Subject: [PATCH 1/3] test: include php 8.4 and 8.5 for testing --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 0355c33..fbb7289 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-latest] - php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] + php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] steps: - name: Checkout From d009e0a801cd445e0b7c2c7e1271067c98077014 Mon Sep 17 00:00:00 2001 From: Saju Varghese Date: Sun, 8 Feb 2026 21:17:44 -0800 Subject: [PATCH 2/3] dev: update psalm version to ^5.0 --- composer.json | 2 +- src/Connection/InetSocket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5f1b5e7..1127f48 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "require-dev": { "phpunit/phpunit": "^9", - "vimeo/psalm": "^4.6", + "vimeo/psalm": "^5.0", "friendsofphp/php-cs-fixer": "^3.0" }, "autoload": { diff --git a/src/Connection/InetSocket.php b/src/Connection/InetSocket.php index 93da2f7..0be021b 100644 --- a/src/Connection/InetSocket.php +++ b/src/Connection/InetSocket.php @@ -144,7 +144,7 @@ private function cutIntoMtuSizedPackets(array $messages): array if ($this->allowFragmentation()) { $message = join(self::LINE_DELIMITER, $messages) . self::LINE_DELIMITER; - $result = str_split($message, $this->maxPayloadSize); + $result = str_split($message, max(1, $this->maxPayloadSize)); return $result ?: []; } From e418e50608006deeb1b9f1b524b634cec21467bf Mon Sep 17 00:00:00 2001 From: Saju Varghese Date: Sun, 8 Feb 2026 21:24:34 -0800 Subject: [PATCH 3/3] dev: allow for psalm 6.0 for 8.4+ --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1127f48..c51d6c6 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "require-dev": { "phpunit/phpunit": "^9", - "vimeo/psalm": "^5.0", + "vimeo/psalm": "^4.6 || ^5.0 || ^6.0", "friendsofphp/php-cs-fixer": "^3.0" }, "autoload": {