diff --git a/src/Messaging/Frame.php b/src/Messaging/Frame.php index 40f9eb2..360b70f 100644 --- a/src/Messaging/Frame.php +++ b/src/Messaging/Frame.php @@ -74,7 +74,7 @@ class Frame implements FrameInterface { * @param callable<\UnderflowException> $ufExceptionFactory */ public function __construct($payload = null, $final = true, $opcode = 1, callable $ufExceptionFactory = null) { - $this->ufeg = $ufExceptionFactory ?: function($msg = '') { + $this->ufeg = $ufExceptionFactory ?: static function($msg = '') { return new \UnderflowException($msg); };