diff --git a/src/Messaging/Frame.php b/src/Messaging/Frame.php index f558554..24b491e 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); };