Skip to content

v0.1.1

Latest
Compare
Choose a tag to compare
@salimromadhon salimromadhon released this 05 Jan 06:05

The collection should be able to be cast as a string.

use Paragraf\Kit\Collection;

(string) new Collection([1, 2, 3]);
// "[1,2,3]"

(string) new Collection([
    'foo' => 123,
    'bar' => [4, 5, 6],
    'baz' => [
        'foo' => '1',
    ],
]);
// "{"foo":123,"bar":[4,5,6],"baz":{"foo":"1"}}"

Full Changelog: v0.1.0...v0.1.1