Skip to content

Commit 6775f56

Browse files
committed
Merge pull request #420 from pgmassari/master
Added condition for paginated items to show in Variables panel. See #419
2 parents 12e27bf + 6e3c700 commit 6775f56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Panel/VariablesPanel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313
namespace DebugKit\Panel;
1414

15+
use Cake\Collection\Collection;
1516
use Cake\Controller\Controller;
1617
use Cake\Datasource\EntityInterface;
1718
use Cake\Event\Event;
@@ -72,7 +73,10 @@ public function shutdown(Event $event)
7273
$errors = [];
7374

7475
$walker = function (&$item) use (&$walker) {
75-
if ($item instanceof Query || $item instanceof ResultSet) {
76+
if ($item instanceof Collection ||
77+
$item instanceof Query ||
78+
$item instanceof ResultSet
79+
) {
7680
try {
7781
$item = $item->toArray();
7882
} catch (\Cake\Database\Exception $e) {

0 commit comments

Comments
 (0)