Skip to content

Commit

Permalink
fix array display
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 11, 2024
1 parent 095ce0c commit 0c827c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ReflectionProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ public function __toString()
$defaultValue = "NULL";
}

if (! is_array($defaultValue)) {
if (is_array($defaultValue)) {
$defaultValueDisplay = '= Array';
} else {
$defaultValueDisplay = '= ' . $defaultValue;
}
}
Expand Down

0 comments on commit 0c827c3

Please sign in to comment.