Skip to content

Commit 5802ef5

Browse files
authored
Merge pull request #101 from reactphp-parallel/renovate/qa-utilities
Update dependency wyrihaximus/makefiles to ^0.10.6
2 parents 53bff23 + 42d0ba3 commit 5802ef5

13 files changed

Lines changed: 138 additions & 58 deletions

File tree

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111
*.webp binary
1212
*.bmp binary
1313
*.ttf binary
14+
*.blp binary
15+
*.db2 binary
1416

1517
# Ignoring files for distribution archieves
1618
.github/ export-ignore
1719
etc/ci/ export-ignore
20+
etc/dev-app/ export-ignore
1821
etc/qa/ export-ignore
1922
examples/ export-ignore
2023
tests/ export-ignore

.github/renovate.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>WyriHaximus/renovate-config:php-package"
5-
]
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>WyriHaximus/renovate-config:php-package"
5+
],
6+
"constraints": {
7+
"php": "8.4.x",
8+
"composer": "2.x"
9+
}
610
}

Makefile

Lines changed: 85 additions & 30 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"react-parallel/stubs": "^1.2.0",
2222
"react/promise-timer": "^1.11.0",
2323
"wyrihaximus/async-test-utilities": "^12.2.0",
24-
"wyrihaximus/makefiles": "^0.7.16"
24+
"wyrihaximus/makefiles": "^0.10.6"
2525
},
2626
"autoload": {
2727
"psr-4": {

composer.lock

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

etc/qa/infection.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"timeout": 66,
33
"source": {
44
"directories": [
5-
"src"
5+
"../../src"
66
]
77
},
88
"logs": {

etc/qa/phpcs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<arg value="np" /> <!-- n = ignore warnings, p = show progress -->
88

99
<file>../../etc</file>
10+
<file>../../examples</file>
1011
<file>../../src</file>
1112
<file>../../tests</file>
1213

etc/qa/phpunit.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="../../vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd" cacheDirectory="../../var/phpunit/cache">
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
bootstrap="../../vendor/autoload.php"
5+
colors="true"
6+
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
7+
cacheDirectory="../../var/phpunit/cache"
8+
displayDetailsOnTestsThatTriggerDeprecations="true"
9+
displayDetailsOnTestsThatTriggerErrors="true"
10+
displayDetailsOnTestsThatTriggerNotices="true"
11+
displayDetailsOnTestsThatTriggerWarnings="true"
12+
displayDetailsOnPhpunitDeprecations="true"
13+
>
314
<testsuites>
415
<testsuite name="Test Suite">
516
<directory>../../tests/</directory>

examples/channel.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
use parallel\Channel;
46
use React\EventLoop\Loop;
57
use ReactParallel\EventLoop\EventLoopBridge;
8+
69
use function React\Async\async;
710
use function React\Async\await;
811
use function React\Promise\Timer\sleep;
@@ -11,11 +14,11 @@
1114

1215
$eventLoopBridge = new EventLoopBridge();
1316

14-
Loop::futureTick(async(static function () use ($eventLoopBridge) {
15-
/** @var Channel<string> */
17+
Loop::futureTick(async(static function () use ($eventLoopBridge): void {
18+
/** @var Channel<string> $channel */
1619
$channel = new Channel(Channel::Infinite);
1720

18-
Loop::futureTick(async(function () use ($channel): void {
21+
Loop::futureTick(async(static function () use ($channel): void {
1922
$channel->send('Hello World!');
2023
// Don't close the channel right after writing to it,
2124
// as it will be closed on both ends and the other

examples/future.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
use React\EventLoop\Loop;
46
use ReactParallel\EventLoop\EventLoopBridge;
7+
58
use function parallel\run;
69
use function React\Async\async;
710

811
require_once __DIR__ . '/../vendor/autoload.php';
912

1013
$eventLoopBridge = new EventLoopBridge();
1114

12-
Loop::futureTick(async(static function () use ($eventLoopBridge) {
13-
$future = run(function (): string {
15+
Loop::futureTick(async(static function () use ($eventLoopBridge): void {
16+
$future = run(static function (): string {
1417
return 'Hello World!';
1518
});
1619

0 commit comments

Comments
 (0)