From 465ce18af230298a5c9ae59948a19e2481c66552 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Mon, 9 Jul 2018 21:10:10 +0100 Subject: Update vendor libraries --- .../src/Whoops/Handler/PrettyPageHandler.php | 1 + .../src/Whoops/Handler/XmlResponseHandler.php | 4 +-- .../src/Whoops/Resources/css/whoops.base.css | 33 ++++++++++++++++++++++ .../src/Whoops/Resources/views/frame_list.html.php | 2 +- .../src/Whoops/Resources/views/layout.html.php | 1 + .../src/Whoops/Resources/views/panel_left.html.php | 7 +++-- 6 files changed, 42 insertions(+), 6 deletions(-) (limited to 'vendor/filp/whoops/src/Whoops') diff --git a/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php b/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php index 1a0fcc8328..08197b4d35 100644 --- a/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php +++ b/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php @@ -96,6 +96,7 @@ class PrettyPageHandler extends Handler "phpstorm" => "phpstorm://open?file=%file&line=%line", "idea" => "idea://open?file=%file&line=%line", "vscode" => "vscode://file/%file:%line", + "atom" => "atom://core/open/file?filename=%file&line=%line", ]; /** diff --git a/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php b/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php index b6f93c5761..0d0a577e5d 100644 --- a/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php +++ b/vendor/filp/whoops/src/Whoops/Handler/XmlResponseHandler.php @@ -67,7 +67,7 @@ class XmlResponseHandler extends Handler */ private static function addDataToNode(\SimpleXMLElement $node, $data) { - assert('is_array($data) || $node instanceof Traversable'); + assert(is_array($data) || $data instanceof Traversable); foreach ($data as $key => $value) { if (is_numeric($key)) { @@ -98,7 +98,7 @@ class XmlResponseHandler extends Handler */ private static function toXml($data) { - assert('is_array($data) || $node instanceof Traversable'); + assert(is_array($data) || $data instanceof Traversable); $node = simplexml_load_string(""); diff --git a/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css b/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css index 0289f122c4..8c08bbc9a7 100644 --- a/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css +++ b/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css @@ -459,6 +459,39 @@ kbd { } } +/* Stack panels */ +@media (max-width: 600px) { + .panel { + position: static; + width: 100%; + } +} + +/* Stack details tables */ +@media (max-width: 400px) { + .data-table, + .data-table tbody, + .data-table tbody tr, + .data-table tbody td { + display: block; + width: 100%; + } + + .data-table tbody tr:first-child { + padding-top: 0; + } + + .data-table tbody td:first-child, + .data-table tbody td:last-child { + padding-left: 0; + padding-right: 0; + } + + .data-table tbody td:last-child { + padding-top: 3px; + } +} + .tooltipped { position: relative } diff --git a/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php b/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php index 7e8fa3d4e1..a4bc338c2b 100644 --- a/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php +++ b/vendor/filp/whoops/src/Whoops/Resources/views/frame_list.html.php @@ -14,4 +14,4 @@ -->getLine() ?> - + + <?php echo $tpl->escape($page_title) ?> diff --git a/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php b/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php index 3d96546a3f..7e652e4698 100644 --- a/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php +++ b/vendor/filp/whoops/src/Whoops/Resources/views/panel_left.html.php @@ -1,3 +1,4 @@ -render($header_outer) ?> -render($frames_description) ?> -render($frames_container) ?> \ No newline at end of file +render($header_outer); +$tpl->render($frames_description); +$tpl->render($frames_container); -- cgit v1.3