Compare commits

..

No commits in common. "master" and "v0.4.4" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ class Frame implements FrameInterface {
* @param int $opcode * @param int $opcode
* @param callable<\UnderflowException> $ufExceptionFactory * @param callable<\UnderflowException> $ufExceptionFactory
*/ */
public function __construct($payload = null, $final = true, $opcode = 1, ?callable $ufExceptionFactory = null) { public function __construct($payload = null, $final = true, $opcode = 1, callable $ufExceptionFactory = null) {
$this->ufeg = $ufExceptionFactory ?: static function($msg = '') { $this->ufeg = $ufExceptionFactory ?: static function($msg = '') {
return new \UnderflowException($msg); return new \UnderflowException($msg);
}; };

View File

@ -1,7 +1,7 @@
<?php <?php
namespace mfmdevsystem\RFC6455\Messaging; namespace mfmdevsystem\RFC6455\Messaging;
use mfmdevsystem\RFC6455\Handshake\PermessageDeflateOptions; use Ratchet\RFC6455\Handshake\PermessageDeflateOptions;
class MessageBuffer { class MessageBuffer {
/** /**
@ -82,13 +82,13 @@ class MessageBuffer {
function __construct( function __construct(
CloseFrameChecker $frameChecker, CloseFrameChecker $frameChecker,
callable $onMessage, callable $onMessage,
?callable $onControl = null, callable $onControl = null,
$expectMask = true, $expectMask = true,
$exceptionFactory = null, $exceptionFactory = null,
$maxMessagePayloadSize = null, // null for default - zero for no limit $maxMessagePayloadSize = null, // null for default - zero for no limit
$maxFramePayloadSize = null, // null for default - zero for no limit $maxFramePayloadSize = null, // null for default - zero for no limit
?callable $sender = null, callable $sender = null,
?PermessageDeflateOptions $permessageDeflateOptions = null PermessageDeflateOptions $permessageDeflateOptions = null
) { ) {
$this->closeFrameChecker = $frameChecker; $this->closeFrameChecker = $frameChecker;
$this->checkForMask = (bool)$expectMask; $this->checkForMask = (bool)$expectMask;