Skip to content

Commit a66188d

Browse files
author
Christian Blanquera
authored
Merge pull request #4 from Eden-PHP/v4
Fixed recursive dependancies
2 parents 419ced3 + 990ae8e commit a66188d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function __call($name, $args)
130130
$result = call_user_func_array($name, $args);
131131

132132
//if the result is a string
133-
if (is_string($result)) {
133+
if (is_string($result) && class_exists('Eden_String_Index')) {
134134
//if this class is a string type
135135
if ($this instanceof Eden_String_Index) {
136136
//set value

test/Index.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,10 +907,9 @@ public function test_array_implode()
907907
{
908908
$test = eden('array')
909909
->set(1, 2, 3)
910-
->implode(', ')
911-
->get();
910+
->implode(', ');
912911

913-
$this->assertEquals('1, 2, 3', $test);
912+
$this->assertEquals('1, 2, 3', (string) $test);
914913
}
915914

916915
public function test_in_array()

0 commit comments

Comments
 (0)