Skip to content

Commit

Permalink
don't show deprecated fields in debug functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skrtdev committed Apr 29, 2021
1 parent c4efb85 commit 9a14837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Telegram/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function __debugInfo() {
unset($result[$key]);
}
foreach ($result as $key => $value) {
if(!isset($value)){
if(!isset($value) || $value instanceof stdClass){
unset($result[$key]);
}
}
Expand Down

0 comments on commit 9a14837

Please sign in to comment.