PHPnews.io

Overview for 'wyrihaximus'

Cancelling ReactPHP fibers

Written by Cees-Jan Kiewiet's blog / Original link on Feb. 22, 2022

A feature that we really needed to make our fiber integration complete is the cancellation of them. Or to be more precise, the cancellation any awaited promise yielding operations in that fiber and as a consequence the fiber that those are awaited in. This post goes into detail how different cancel…


Thoughts on psr/log versions

Written by Cees-Jan Kiewiet's blog / Original link on Feb. 21, 2022

One of the things that came up while upgrading packages is PSR-3's new v2 and v3 releases. They add type hints to methods and return type hints. For packages implementing this means that they can't support all 3 versions. For packages only consuming psr/log all 3 versions can be used as you don't…