Minor fix
Some checks are pending
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (client, ubuntu-22.04, 7.4) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (client, ubuntu-22.04, 8) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (client, ubuntu-22.04, 8.1) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (client, ubuntu-22.04, 8.2) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (client, ubuntu-22.04, 8.3) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (client, ubuntu-22.04, 8.4) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (server, ubuntu-22.04, 7.4) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (server, ubuntu-22.04, 8) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (server, ubuntu-22.04, 8.1) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (server, ubuntu-22.04, 8.2) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (server, ubuntu-22.04, 8.3) (push) Waiting to run
CI / PHPUnit (PHP ${{ matrix.php }})(${{ matrix.env }}) on ${{ matrix.os }} (server, ubuntu-22.04, 8.4) (push) Waiting to run

This commit is contained in:
Mohamad Faeez 2025-04-09 14:45:21 +08:00
parent 859d95f85d
commit 18176a821d
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "ratchet/rfc6455", "name": "mfmdevsystem/rfc6455",
"type": "library", "type": "library",
"description": "RFC6455 WebSocket protocol handler", "description": "RFC6455 WebSocket protocol handler",
"keywords": ["WebSockets", "websocket", "RFC6455"], "keywords": ["WebSockets", "websocket", "RFC6455"],
@ -14,6 +14,10 @@
{ {
"name": "Matt Bonneau", "name": "Matt Bonneau",
"role": "Developer" "role": "Developer"
},
{
"name": "Mohamad Faeez",
"role": "Developer"
} }
], ],
"support": { "support": {
@ -22,7 +26,7 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Ratchet\\RFC6455\\": "src" "mfmdevsystem\\RFC6455\\": "src"
} }
}, },
"require": { "require": {

View File

@ -67,7 +67,7 @@ class Frame implements FrameInterface {
* @param int $opcode * @param int $opcode
* @param callable<\UnderflowException> $ufExceptionFactory * @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); $this->ufeg = $ufExceptionFactory ?: static fn (string $msg = '') => new \UnderflowException($msg);
if (null === $payload) { if (null === $payload) {