Use exception factory that is passed in
This commit is contained in:
parent
5911d8bc35
commit
52b27fd7b4
@ -93,7 +93,7 @@ class MessageBuffer {
|
||||
$this->closeFrameChecker = $frameChecker;
|
||||
$this->checkForMask = (bool)$expectMask;
|
||||
|
||||
$this->exceptionFactory ?: $this->exceptionFactory = function($msg) {
|
||||
$this->exceptionFactory ?: $exceptionFactory = function($msg) {
|
||||
return new \UnderflowException($msg);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user