From 0dee0e54b100a22cdd36647161e951af04effcce Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Mon, 20 Jul 2020 10:40:50 +0800 Subject: [PATCH] Alias Illuminate\Support\Debug\HtmlDumper to Symfony's HtmlDumper --- modules/system/aliases.php | 2 ++ tests/unit/system/AliasesTest.php | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/modules/system/aliases.php b/modules/system/aliases.php index fd32fa476..d6364cd13 100644 --- a/modules/system/aliases.php +++ b/modules/system/aliases.php @@ -66,4 +66,6 @@ return [ */ // Input facade was removed in Laravel 6 - we are keeping it in the Rain library for backwards compatibility. 'Illuminate\Support\Facades\Input' => October\Rain\Support\Facades\Input::class, + // Illuminate's HtmlDumper was "dumped" in Laravel 6 - we'll route this to Symfony's HtmlDumper as Laravel have done. + 'Illuminate\Support\Debug\HtmlDumper' => Symfony\Component\VarDumper\Dumper\HtmlDumper::class, ]; diff --git a/tests/unit/system/AliasesTest.php b/tests/unit/system/AliasesTest.php index c0a64fbd2..8d389cdcc 100644 --- a/tests/unit/system/AliasesTest.php +++ b/tests/unit/system/AliasesTest.php @@ -10,4 +10,13 @@ class AliasesTest extends PluginTestCase new \Illuminate\Support\Facades\Input() ); } + + public function testHtmlDumperAlias() + { + $this->assertTrue(class_exists('Illuminate\Support\Debug\HtmlDumper')); + $this->assertInstanceOf( + \Symfony\Component\VarDumper\Dumper\HtmlDumper::class, + new \Illuminate\Support\Debug\HtmlDumper() + ); + } }