Fix some errors with the Map function

Signed-off-by: davidarendsen <davidarendsen@hey.com>
This commit is contained in:
davidarendsen 2023-01-12 12:11:28 +00:00
commit 0a4da04e58
2 changed files with 9 additions and 7 deletions

View file

@ -10,14 +10,16 @@ class Map extends Base
public static function with(string $name, string $content): Map
{
self::$string = 'r with ' . $name . ': ' . $content;
return new self();
$object = new self();
$object::$string = 'r with ' . $name . ': ' . $content;
return $object;
}
public static function columns(array $columns)
{
self::$string = new FieldRecordType($columns);
return new self();
$object = new self();
$object::$string = new FieldRecordType($columns);
return $object;
}
public function __toString()