Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Commit 3d27749

Browse files
committed
Fix Config::toString() for newer XP framework versions
1 parent cbf4c38 commit 3d27749

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/main/php/xp/scriptlet/Config.class.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php namespace xp\scriptlet;
22

3-
use util\PropertySource;
4-
use util\FilesystemPropertySource;
5-
use util\ResourcePropertySource;
6-
use util\CompositeProperties;
7-
use util\Objects;
83
use lang\ElementNotFoundException;
94
use lang\FunctionType;
105
use lang\Primitive;
6+
use util\CompositeProperties;
7+
use util\FilesystemPropertySource;
8+
use util\Objects;
9+
use util\PropertySource;
10+
use util\ResourcePropertySource;
1111
new import('lang.ResourceProvider');
1212

1313
/**
@@ -109,6 +109,10 @@ public function hashCode() {
109109

110110
/** @return string */
111111
public function toString() {
112-
return nameof($this).($this->sources ? Objects::stringOf($this->sources) : '[]');
112+
$s= '';
113+
foreach ($this->sources as $source) {
114+
$s.= ', '.$source->toString();
115+
}
116+
return nameof($this).'['.substr($s, 2).']';
113117
}
114118
}

0 commit comments

Comments
 (0)