Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Swoole v5 compatibility in hot reloader. Fix unit tests #125

Merged
merged 5 commits into from
Jan 15, 2024

Conversation

Xerkus
Copy link
Member

@Xerkus Xerkus commented Jan 11, 2024

Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA yes

Description

Changing CI setup to use swoole from ondrej ppa used in our CI container. This is not ideal setup but it will allow to unblock support for PHP 8.3.

Current CI setup is not sufficient as it does not test different versions of swoole and does not test for openswoole. It is a task for another day. Considering swoole and openswoole are set to diverge different kind of approach would need to be taken anyway.

Stricter types in swoole v5 uncovered some deficiencies in unit test mocks. This PR fixes those issues and takes care of updating a few phpunit deprecations.

While rest of the mezzio-swoole is compatible with v5, hot reloader functionality was not due to removal of decorator method Swoole\Server::tick(). Hot reloader listener is updated to use Swoole\Timer::tick() directly.

Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
…ck() call in hot reloader

Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
@Xerkus Xerkus added the Enhancement New feature or request label Jan 11, 2024
@Xerkus Xerkus added this to the 4.9.0 milestone Jan 11, 2024
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
@Xerkus Xerkus merged commit 2f036dc into mezzio:4.9.x Jan 15, 2024
12 checks passed
@Xerkus Xerkus deleted the feature/swoole-v5-tests branch January 15, 2024 18:07
@Xerkus Xerkus mentioned this pull request Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants