From 0f12ee98fa1d60a71d73e3bb7f2c7b1ffe4ea2f0 Mon Sep 17 00:00:00 2001 From: Recca Tsai Date: Mon, 6 Mar 2017 20:13:27 +0800 Subject: [PATCH] update --- CHANGELOG.md | 5 +++++ src/LaravelTracyServiceProvider.php | 2 +- src/Middleware/RenderBar.php | 3 --- tests/Middleware/RenderBarTest.php | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88027f5..ca0c920 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `laravel-tracy` will be documented in this file +## 1.8.4 - 2017-03-06 + +- 修正 DatabasePanel bug +- 修正某些 php 版本當使用 header 時第二個參數設為 false 時會出錯 + ## 1.8.3 - 2017-03-06 - 在 console 模式下不啟用,避免無法執行 PHPUnit diff --git a/src/LaravelTracyServiceProvider.php b/src/LaravelTracyServiceProvider.php index 5081e8d..3f45b5d 100644 --- a/src/LaravelTracyServiceProvider.php +++ b/src/LaravelTracyServiceProvider.php @@ -25,7 +25,7 @@ class LaravelTracyServiceProvider extends ServiceProvider */ public function boot(DebuggerManager $debuggerManager, Kernel $kernel, View $view) { - $viewCompiler = $view->getEngineResolver() + $view->getEngineResolver() ->resolve('blade') ->getCompiler() ->directive('bdump', function ($expression) { diff --git a/src/Middleware/RenderBar.php b/src/Middleware/RenderBar.php index c98533a..0d914ed 100644 --- a/src/Middleware/RenderBar.php +++ b/src/Middleware/RenderBar.php @@ -71,9 +71,6 @@ public function handle($request, $next) } echo $content; }, 200); - - - return $this->responseFactory->make($content, 200, $headers); } $this->debuggerManager->dispatch(); diff --git a/tests/Middleware/RenderBarTest.php b/tests/Middleware/RenderBarTest.php index 155d7a3..89b7a23 100644 --- a/tests/Middleware/RenderBarTest.php +++ b/tests/Middleware/RenderBarTest.php @@ -39,7 +39,7 @@ public function testHandleAssets() $headers = ['foo' => 'bar'], $content = 'foo', ]); - $responseFactory->shouldReceive('stream')->with(m::on(function($callback) use ($content) { + $responseFactory->shouldReceive('stream')->with(m::on(function ($callback) use ($content) { ob_start(); $callback(); $output = ob_get_clean();