Removed ob_end_clean when using ob_get_clean.

This commit is contained in:
Simon Sessingø
2021-03-21 15:22:35 +01:00
parent 8254c5b100
commit 0aeefa1cba
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -75,7 +75,6 @@ class SimpleRouter
ob_start(); ob_start();
static::router()->setDebugEnabled(true)->start(); static::router()->setDebugEnabled(true)->start();
$routerOutput = ob_get_clean(); $routerOutput = ob_get_clean();
ob_end_clean();
} catch (\Exception $e) { } catch (\Exception $e) {
} }
+1 -2
View File
@@ -35,8 +35,7 @@ class TestRouter extends \Pecee\SimpleRouter\SimpleRouter
// Route request // Route request
ob_start(); ob_start();
static::debug($testUrl, $testMethod, $reset); static::debug($testUrl, $testMethod, $reset);
$response = ob_get_contents(); $response = ob_get_clean();
ob_end_clean();
// Return response // Return response
return $response; return $response;