Skip to content

Commit 4240fd7

Browse files
committed
added Helpers::createObject() for back compatibility [Closes #48]
1 parent 758077b commit 4240fd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/PhpGenerator/Helpers.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,11 @@ public static function tabsToSpaces(string $s, int $count = 4): string
9090
{
9191
return str_replace("\t", str_repeat(' ', $count), $s);
9292
}
93+
94+
95+
/** @internal */
96+
public static function createObject(string $class, array $props)
97+
{
98+
return Dumper::createObject($class, $props);
99+
}
93100
}

0 commit comments

Comments
 (0)