Skip to content

Commit

Permalink
Merge pull request #7 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 cef3c5d + b5979ed commit 2a6f9d6
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 2a6f9d6

Please sign in to comment.