Skip to content

Commit

Permalink
Merge pull request #6 from preprocess/feature/update-plugin
Browse files Browse the repository at this point in the history
Update plugin
  • Loading branch information
assertchris authored Oct 8, 2018
2 parents bc7697a + a87612d commit 71ecc77
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "pre/collections",
"license": "MIT",
"require": {
"pre/plugin": "^0.11.0"
"pre/plugin": "^0.11.3"
},
"autoload": {
"psr-4": {
Expand Down
44 changes: 21 additions & 23 deletions tests/specs/collections.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,42 @@ $d = {

{ $a, $b, $c } = ["a" => 1, "b" => 2, "c" => 3];

() => {}

["foo" => {"bar" => "baz"}]
["foo" => {"bar" => "baz"}];

~~~

( (new \Pre\Collections\Collection()));
new \Pre\Collections\Collection();

[ (new \Pre\Collections\Collection())];
[new \Pre\Collections\Collection()];

( (new \Pre\Collections\Collection(["foo" => "bar"])));
new \Pre\Collections\Collection(["foo" => "bar"]);

[ (new \Pre\Collections\Collection(["foo" => "bar"]))];
[new \Pre\Collections\Collection(["foo" => "bar"])];

[true, (new \Pre\Collections\Collection(["foo" => "bar"]))];
[true, new \Pre\Collections\Collection(["foo" => "bar"])];

return (new \Pre\Collections\Collection());
return new \Pre\Collections\Collection();

$a = (new \Pre\Collections\Collection());
$a = new \Pre\Collections\Collection();

return (new \Pre\Collections\Collection($a2));
return new \Pre\Collections\Collection($a2);

$b = (new \Pre\Collections\Collection($a2));
$b = new \Pre\Collections\Collection($a2);

return (new \Pre\Collections\Collection(["foo" => "bar"]));
return new \Pre\Collections\Collection(["foo" => "bar"]);

$c = (new \Pre\Collections\Collection(["foo" => "bar"]));
$c = new \Pre\Collections\Collection(["foo" => "bar"]);

return (new \Pre\Collections\Collection(["hello" => "world",
"goodbye" => "world",
]));
return new \Pre\Collections\Collection([
"hello" => "world",
"goodbye" => "world"
]);

$d = (new \Pre\Collections\Collection(["hello" => "world",
"goodbye" => "world",
]));
$d = new \Pre\Collections\Collection([
"hello" => "world",
"goodbye" => "world"
]);

['a' => $a, 'b' => $b, 'c' => $c] = ["a" => 1, "b" => 2, "c" => 3];

() => {}

["foo"=> (new \Pre\Collections\Collection(["bar" => "baz"]))]
["foo" => new \Pre\Collections\Collection(["bar" => "baz"])];

0 comments on commit 71ecc77

Please sign in to comment.