Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*.webp binary
*.bmp binary
*.ttf binary
*.blp binary
*.db2 binary

# Ignoring files for distribution archieves
.github/ export-ignore
Expand Down
12 changes: 8 additions & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>WyriHaximus/renovate-config:php-package"
]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>WyriHaximus/renovate-config:php-package"
],
"constraints": {
"php": "8.4.x",
"composer": "2.x"
}
}
115 changes: 85 additions & 30 deletions Makefile

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require-dev": {
"react-parallel/stubs": "^1.2.0",
"wyrihaximus/async-test-utilities": "^12.2.0",
"wyrihaximus/makefiles": "^0.7.15",
"wyrihaximus/makefiles": "^0.10.6",
"wyrihaximus/ticking-promise": "^3.1.0"
},
"autoload": {
Expand Down
18 changes: 9 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion etc/qa/infection.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"timeout": 120,
"source": {
"directories": [
"src"
"../../src"
]
},
"logs": {
Expand Down
1 change: 1 addition & 0 deletions etc/qa/phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<arg value="np" /> <!-- n = ignore warnings, p = show progress -->

<file>../../etc</file>
<file>../../examples</file>
<file>../../src</file>
<file>../../tests</file>

Expand Down
1 change: 1 addition & 0 deletions etc/qa/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ parameters:
ergebnis:
noExtends:
classesAllowedToBeExtended:
- Exception
- ReactParallel\EventLoop\CancelledException
- ReactParallel\EventLoop\CanceledFuture
- ReactParallel\EventLoop\KilledRuntime
13 changes: 12 additions & 1 deletion etc/qa/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnPhpunitDeprecations="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory>../../tests/</directory>
Expand Down
6 changes: 4 additions & 2 deletions examples/run.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php

use ReactParallel\Runtime\Runtime;
declare(strict_types=1);

use ReactParallel\EventLoop\EventLoopBridge;
use ReactParallel\Runtime\Runtime;

require __DIR__ . '/../vendor/autoload.php';

$runtime = Runtime::create(new EventLoopBridge());

echo $runtime->run(function (): int {
echo $runtime->run(static function (): int {
sleep(3);

return 3;
Expand Down
1 change: 0 additions & 1 deletion tests/LatchcombException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Exception;

/** @phpstan-ignore-next-line */
final class LatchcombException extends Exception
{
}
Loading