FIX PHP Fatal error: Allowed memory size of exhausted
This commit is contained in:
parent
cc8a1a46a7
commit
7b36995d00
@ -74,7 +74,7 @@ class Frame implements FrameInterface {
|
|||||||
* @param callable<\UnderflowException> $ufExceptionFactory
|
* @param callable<\UnderflowException> $ufExceptionFactory
|
||||||
*/
|
*/
|
||||||
public function __construct($payload = null, $final = true, $opcode = 1, callable $ufExceptionFactory = null) {
|
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);
|
return new \UnderflowException($msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user