Skip to content

Commit

Permalink
Update plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Oct 8, 2018
1 parent cef3c5d commit b5979ed
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
]
},
"require": {
"pre/plugin": "^0.11.0"
"pre/plugin": "^0.11.3"
},
"require-dev": {
"phpunit/phpunit": "^5.0|^6.0"
Expand Down
28 changes: 17 additions & 11 deletions tests/specs/async.spec
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,21 @@ $first = function (): \Amp\Promise {
});
};

$second = [$thing = $thing ?? null, "fn" => function () use (&$thing): \Amp\Promise {
return \Amp\call(function () use (&$thing) {
$this->something();
yield $thing;
});
}]["fn"];
$second = [
($thing = $thing ?? null),
"fn" => function () use (&$thing): \Amp\Promise {
return \Amp\call(function () use (&$thing) {
$this->something();
yield $thing;
});
}
]["fn"];

$third = [$thing = $thing ?? null, "fn" => function () use (&$thing): \Amp\Promise {
return \Amp\call(function () use (&$thing) {
yield $thing;
});
}]["fn"];
$third = [
($thing = $thing ?? null),
"fn" => function () use (&$thing): \Amp\Promise {
return \Amp\call(function () use (&$thing) {
yield $thing;
});
}
]["fn"];

0 comments on commit b5979ed

Please sign in to comment.