Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 97b801e

Browse files
committed
Add filter methods()
1 parent ad61aee commit 97b801e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ggrachdev.debugbar/filters.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@
2626

2727
return $data;
2828
})
29-
->addFilter('keys', function ($data, $filterParams) {
29+
->addFilter('methods', function ($data, $filterParams) {
30+
if (\is_object($data) && !empty($data)) {
31+
$data = get_class_methods($data);
32+
}
3033

34+
return $data;
35+
})
36+
->addFilter('keys', function ($data, $filterParams) {
3137
if (
3238
!empty($data) &&
3339
is_array($data) &&

0 commit comments

Comments
 (0)