From 7e920c7bfcafe36eed2afda5fd15de0fea925079 Mon Sep 17 00:00:00 2001 From: Boris Klimenko <2@borisklimenko.ru> Date: Fri, 25 Oct 2019 16:18:09 +0300 Subject: fix notice in memleak test --- tests/http/memleak.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/http') diff --git a/tests/http/memleak.php b/tests/http/memleak.php index 2df7ae63..197a7fb1 100644 --- a/tests/http/memleak.php +++ b/tests/http/memleak.php @@ -3,10 +3,9 @@ use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; -$mem = ''; - function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { + $mem = ''; $mem .= str_repeat(" ", 1024*1024); return $resp; } -- cgit v1.2.3