Use exception factory that is passed in

This commit is contained in:
Matt Bonneau 2020-05-07 10:52:36 -04:00
parent 5911d8bc35
commit 52b27fd7b4

View File

@ -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);
};