From b7b7a0ec773c44d8d83753e91b5c63c1e7de383f Mon Sep 17 00:00:00 2001 From: Simon Frings Date: Mon, 5 Feb 2024 09:16:11 +0100 Subject: [PATCH] Forward compatibility with Promise v3 --- README.md | 10 +++++----- composer.json | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4195312..c8ec30f 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ $factory->createClient('user:secret@localhost')->then(function (Clue\React\Ami\C }); ``` -See also the [examples](examples). +See also the [examples](examples/). ## Usage @@ -557,7 +557,7 @@ This project follows [SemVer](https://semver.org/). This will install the latest supported version: ```bash -$ composer require clue/ami-react:^1.1 +composer require clue/ami-react:^1.1 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. @@ -572,13 +572,13 @@ To run the test suite, you first need to clone this repo and then install all dependencies [through Composer](https://getcomposer.org/): ```bash -$ composer install +composer install ``` To run the test suite, go to the project root and run: ```bash -$ vendor/bin/phpunit +vendor/bin/phpunit ``` The test suite contains both unit tests and functional integration tests. @@ -588,7 +588,7 @@ If you want to also run the functional tests, you need to supply *your* AMI logi details in an environment variable like this: ```bash -$ LOGIN=username:password@localhost php vendor/bin/phpunit +LOGIN=username:password@localhost php vendor/bin/phpunit ``` ## License diff --git a/composer.json b/composer.json index 2141caf..bd69c2e 100644 --- a/composer.json +++ b/composer.json @@ -14,11 +14,11 @@ "php": ">=5.3", "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "react/event-loop": "^1.2", - "react/promise": "^2.0 || ^1.1", - "react/socket": "^1.9" + "react/promise": "^3.0 || ^2.9 || ^1.1", + "react/socket": "^1.14" }, "require-dev": { - "clue/block-react": "^1.2", + "clue/block-react": "^1.5", "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" }, "autoload": {