From 7b36995d0099fd5e240a31655f456d0f52dfd01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Ku=C5=A1n=C3=ADr?= Date: Wed, 2 May 2018 08:45:50 +0200 Subject: [PATCH] FIX PHP Fatal error: Allowed memory size of exhausted --- src/Messaging/Frame.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); };