Skip to content

build(deps): update amphp/amp requirement from ^2.6 to ^2.6 || ^3.0 - #101

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/amphp/amp-tw-2.6or-tw-3.0
Open

build(deps): update amphp/amp requirement from ^2.6 to ^2.6 || ^3.0#101
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/amphp/amp-tw-2.6or-tw-3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 25, 2026

Copy link
Copy Markdown

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Updates the requirements on amphp/amp to permit the latest version.

Release notes

Sourced from amphp/amp's releases.

3.1.2

What's Changed

  • Fixed detection of AMP_DEBUG when set as a PHP constant when a falsey environment AMP_DEBUG value is present
  • Forbid cloning and serialization of Interval to prevent cancellation of event-loop callbacks from the original object for cloning or arbitrary callbacks on deserialization

Full Changelog: amphp/amp@v3.1.1...v3.1.2

Changelog

Sourced from amphp/amp's changelog.

3.x

3.0.0

Event Loop

Amp no longer ships its own event loop. It's now based on Revolt. Revolt\EventLoop is quite similar to Amp's previous Amp\Loop. A very important difference is using float $seconds instead of int $milliseconds for timers though!

Promises

Future is a replacement for the previous Promise. There's no need for callbacks or yield anymore! Its await() method is based on fibers and replaces generator based coroutines / Amp\Promise\wait().

  • Renamed Amp\Deferred to Amp\DeferredFuture.
  • Removed Amp\Promise\wait(): Use Amp\Future::await() instead, which can be called in any (nested) context unlike before.
  • Removed Amp\call(): Remove the passed closure boilerplate and all yield keywords, interruption is handled via fibers now instead of generator coroutines.
  • Removed Amp\asyncCall(): Replace invocations with Amp\async(), which starts a new fiber instead of using generators.
  • Removed Amp\coroutine(): There's no direct replacement.
  • Removed Amp\asyncCoroutine(): There's no direct replacement.
  • Removed Amp\Promise\timeout(): Future::await() accepts an optional Cancellation, which can be used as a replacement.
  • Removed Amp\Promise\rethrow(): Unhandled errors are now automatically thrown into the event loop, so there's no need for that function anymore.
  • Unhandled errors can be ignored using Future::ignore() if needed, but should usually be handled in some way.
  • Removed Amp\Promise\wrap(): Use Future::finally() instead.
  • Renamed Amp\getCurrentTime() to Amp\now() returning the time in seconds instead of milliseconds.
  • Changed Amp\delay() to accept the delay in seconds now instead of milliseconds.
  • Added Amp\weakClosure() to allow a class to hold a self-referencing Closure without creating a circular reference that prevents automatic garbage collection.
  • Added Amp\trapSignal() to await one or multiple signals.

Promise Combinators

Promise combinators have been renamed:

  • Amp\Promise\race() has been renamed to Amp\Future\awaitFirst()
  • Amp\Promise\first() has been renamed to Amp\Future\awaitAny()
  • Amp\Promise\some() has been renamed to Amp\Future\awaitAnyN()
  • Amp\Promise\any() has been renamed to Amp\Future\awaitAll()
  • Amp\Promise\all() has been renamed to Amp\Future\await()

CancellationToken

  • CancellationToken has been renamed to Cancellation.
  • CancellationTokenSource has been renamed to DeferredCancellation.
  • NullCancellationToken has been renamed to NullCancellation.
  • TimeoutCancellationToken has been renamed to TimeoutCancellation.
  • CombinedCancellationToken has been renamed to CompositeCancellation.
  • SignalCancellation has been added.

Iterators

... (truncated)

Commits
  • 2f3ebed Skip closure declaration
  • 14d38ce Bump actions/checkout from 6 to 7 (#465)
  • 1cf56c8 Formatting and annotation fixes
  • 2b40750 Add missing ForbidCloning and ForbidSerialization to a few classes
  • 37856fb Fix detection of AMP_DEBUG
  • 78df009 Add missing export-ignore entries to .gitattributes (#464)
  • 560a117 Bump actions/cache from 4 to 5 (#461)
  • 5d9b17b Bump actions/checkout from 5 to 6 (#463)
  • 78b5e92 Update psalm to disable JIT
  • c3d9291 Remove nick-invision/retry
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Updates the requirements on [amphp/amp](https://github.com/amphp/amp) to permit the latest version.
- [Release notes](https://github.com/amphp/amp/releases)
- [Changelog](https://github.com/amphp/amp/blob/3.x/CHANGELOG.md)
- [Commits](amphp/amp@v2.6.0...v3.1.2)

---
updated-dependencies:
- dependency-name: amphp/amp
  dependency-version: 3.1.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Jun 25, 2026
@olvert

olvert commented Aug 14, 2026

Copy link
Copy Markdown

@dependabot recreate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant