We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9a2ca commit 9cc0852Copy full SHA for 9cc0852
src/PHPCR/Util/Console/Helper/TreeDumper/ConsoleDumperPropertyVisitor.php
@@ -96,20 +96,13 @@ public function visit(ItemInterface $item)
96
97
98
if ('path' == $this->refFormat) {
99
- $references = $item->getValue();
100
- if (!is_array($references)) {
101
- $references = array($references);
102
- }
+ $references = (array) $item->getValue();
103
104
foreach ($references as $reference) {
105
$referenceStrings[] = $reference->getPath();
106
}
107
-
108
} else {
109
- $referenceStrings = $item->getString();
110
- if (!is_array($referenceStrings)) {
111
- $referenceStrings = array($referenceStrings);
112
+ $referenceStrings = (array) $item->getString();
113
114
115
$value = '';
0 commit comments