diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3666cd4..55588d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,6 @@ jobs: - 7.3 - 7.2 - 7.1 - - 7.0 - - 5.6 - - 5.5 - - 5.4 - - 5.3 steps: - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index c6fd6e3..8b364c5 100644 --- a/composer.json +++ b/composer.json @@ -27,8 +27,8 @@ } ], "require": { - "php": ">=5.3", - "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.6", + "php": ">=7.1", + "react/stream": "^3 || ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.6", "react/promise": "^3 || ^2.1 || ^1.2" }, "require-dev": { diff --git a/src/functions.php b/src/functions.php index c923f1d..bf189fa 100644 --- a/src/functions.php +++ b/src/functions.php @@ -295,7 +295,7 @@ function all(EventEmitterInterface $stream, $event = 'data') * * $stream = React\Promise\Stream\unwrapReadable($promise); * - * $loop->addTimer(2.0, function () use ($stream) { + * Loop::get()->addTimer(2.0, function () use ($stream) { * $stream->close(); * }); * ``` @@ -360,7 +360,7 @@ function unwrapReadable(PromiseInterface $promise) * * $stream = React\Promise\Stream\unwrapWritable($promise); * - * $loop->addTimer(2.0, function () use ($stream) { + * Loop::get()->addTimer(2.0, function () use ($stream) { * $stream->close(); * }); * ```