Skip to content

Conversation

@Yokann
Copy link

@Yokann Yokann commented Aug 23, 2023

AMPHP use now Fiber via Revolt eventloop.
I made this PR to update the current AMPHP implementation of Tornado to this new version.
I don't think it's a good idea to keep both implementation of AMP (2.6 and 3.0)

  • Drop of the PHP 7.4 version was needed.
  • I also update PHPStan version

Documentaion

https://amphp.org/upgrade
https://revolt.run/fundamentals

@Yokann Yokann marked this pull request as ready for review August 23, 2023 12:39
Comment on lines +13 to +14
private \Amp\DeferredFuture $ampDeferred;
private PromiseWrapper $promise;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be readonly

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the pros of making it read-only? It's a private attribute.

{
/** @var \Amp\Promise */
private $ampPromise;
private \Amp\Future $ampPromise;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be readonly now, and the getter removed.

@Yokann Yokann marked this pull request as draft August 24, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants