Skip to content

Commit 947318c

Browse files
Update dependency wyrihaximus/async-test-utilities to v13
1 parent 65abe7b commit 947318c

8 files changed

Lines changed: 994 additions & 720 deletions

File tree

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"react/event-loop": "^1.6.0",
2020
"react/promise": "^3.3.0",
2121
"wyrihaximus/constants": "^1.6.0",
22-
"wyrihaximus/metrics": "^3",
22+
"wyrihaximus/metrics": "^3.0.0",
2323
"wyrihaximus/pool-info": "^2.0",
24-
"wyrihaximus/ticking-promise": "^3.1.0"
24+
"wyrihaximus/ticking-promise": "^3.2.0"
2525
},
2626
"require-dev": {
27-
"react-parallel/pool-tests": "^5.1.0 || ^6.0.0",
28-
"wyrihaximus/async-test-utilities": "^12.2.0",
27+
"react-parallel/pool-tests": "^7.0.0",
28+
"wyrihaximus/async-test-utilities": "^13.3.0",
2929
"wyrihaximus/makefiles": "^0.12.3"
3030
},
3131
"autoload": {

composer.lock

Lines changed: 984 additions & 704 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

etc/qa/phpstan.neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ parameters:
88
-
99
message: '#Method ReactParallel\\Pool\\Test\\Direct::run\(\) should return T\|null but returns T\|void.#'
1010
path: ../../src/Direct.php
11-
-
12-
identifier: shipmonk.nonNormalizedType
13-
path: ../../src/Direct.php
14-
count: 10
1511
ergebnis:
1612
noExtends:
1713
classesAllowedToBeExtended:

examples/echo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
$loop = Factory::create();
1212
$infinite = new Direct($loop, new EventLoopBridge($loop), 1);
13-
$infinite->run(static function () {
13+
$infinite->run(static function (): string {
1414
sleep(1);
1515

1616
return 'Hoi!';

examples/exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
$infinite = new Direct($loop, new EventLoopBridge($loop), 1);
1414

15-
$infinite->run(static function () {
15+
$infinite->run(static function (): string {
1616
throw new RuntimeException('Whoops I did it again!');
1717

1818
return 'We shouldn\'t reach this!';

examples/json.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
$tick = static function () use (&$promises, $infinite, $loop, $signalHandler, $json, &$tick): void {
2626
if (count($promises) < 1000) {
27-
$promises[] = $infinite->run(static function ($json) {
28-
$json = json_decode($json, true);
27+
$promises[] = $infinite->run(static function ($json): string {
28+
$json = json_decode((string) $json, true);
2929

3030
return md5(json_encode($json));
3131
}, [$json]);

examples/sleep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
sleep($sleep);
2626

2727
return $sleep;
28-
}, [random_int(1, 13)])->then(static function (int $sleep) use ($i) {
28+
}, [random_int(1, 13)])->then(static function (int $sleep) use ($i): int {
2929
echo $i, '; ', $sleep, PHP_EOL;
3030

3131
return $sleep;

examples/versions.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
$finite->kill();
1818
$loop->stop();
1919
});
20-
$finite->run(static function (): array {
21-
return array_merge(...array_map(static fn (string $package): array => [$package => InstalledVersions::getPrettyVersion($package)], InstalledVersions::getInstalledPackages()));
22-
})->then(static function (array $versions): void {
20+
$finite->run(static fn (): array => array_merge(...array_map(static fn (string $package): array => [$package => InstalledVersions::getPrettyVersion($package)], InstalledVersions::getInstalledPackages())))->then(static function (array $versions): void {
2321
var_export($versions);
2422
});
2523

0 commit comments

Comments
 (0)