From 18176a821deb1d525235df3bc676312478571756 Mon Sep 17 00:00:00 2001 From: Mohamad Faeez Date: Wed, 9 Apr 2025 14:45:21 +0800 Subject: [PATCH] Minor fix --- composer.json | 8 ++++++-- src/Messaging/Frame.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 07586f0..f1a14a8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "ratchet/rfc6455", + "name": "mfmdevsystem/rfc6455", "type": "library", "description": "RFC6455 WebSocket protocol handler", "keywords": ["WebSockets", "websocket", "RFC6455"], @@ -14,6 +14,10 @@ { "name": "Matt Bonneau", "role": "Developer" + }, + { + "name": "Mohamad Faeez", + "role": "Developer" } ], "support": { @@ -22,7 +26,7 @@ }, "autoload": { "psr-4": { - "Ratchet\\RFC6455\\": "src" + "mfmdevsystem\\RFC6455\\": "src" } }, "require": { diff --git a/src/Messaging/Frame.php b/src/Messaging/Frame.php index 7833423..951c25d 100644 --- a/src/Messaging/Frame.php +++ b/src/Messaging/Frame.php @@ -67,7 +67,7 @@ class Frame implements FrameInterface { * @param int $opcode * @param callable<\UnderflowException> $ufExceptionFactory */ - public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, ?callable $ufExceptionFactory = null) { + public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, $ufExceptionFactory = null) { $this->ufeg = $ufExceptionFactory ?: static fn (string $msg = '') => new \UnderflowException($msg); if (null === $payload) {