-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[RoadRunner] Add support for RoadRunner 2023 and 2024 #172
Changes from all commits
f86a9a6
c2afca9
a0d0a5e
67da953
4898517
17ee752
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,17 @@ | |
"require": { | ||
"php": ">=8.0.5", | ||
"nyholm/psr7": "^1.4", | ||
"spiral/roadrunner": "^2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about kept this dependency and add the 2023 and 2024 versions in it?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See discussions before that is just incorrect and need handled differently. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the clarification! |
||
"spiral/roadrunner-cli": "^2.6", | ||
"spiral/roadrunner-http": "^2.0 || ^3.0", | ||
"spiral/roadrunner-worker": "^2.0 || ^3.0", | ||
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/psr-http-message-bridge": "^2.1 || ^6.4 || ^7.0", | ||
"symfony/runtime": "^5.4 || ^6.0 || ^7.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^9.5" | ||
"phpunit/phpunit": "^9.5", | ||
"symfony/console": "^5.4 || ^6.4 || ^7.0" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unfamiliar with pslam @Nyholm can you have a look at this change if you are fine with it or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is inferred from the PHP version we are running on.
I dont mind adding it, but it would be nice to hear what value it brings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msmakouz can you answer that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-schranz @Nyholm In the Psalm action, PHP 8.2 is used, and the latest dependencies are used. However, without this option, Psalm checks with the PHP version specified as the minimum in composer.json, and it displays two errors:
https://github.com/php-runtime/runtime/actions/runs/9156994654/job/25172484593
I assume this is because the package spiral/roadrunner-worker (v3.6.0) requires a minimum PHP version of 8.1. If this option is added, these errors are not present. Need to specify this option or lower the PHP version in the action to 8.0 so that the dependencies requiring a minimum PHP version of 8.0 are installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds for me like we are missing the requirement to
spiral/roadrunner-worker
package in our owncomposer.json
also. So think we need to add:also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue with Psalm is not related to this. This package was installed anyway because it is required by
roadrunner-php/http
. However,spiral/roadrunner-worker
is used in this package, so it needs to be added, you are right. I have added it.