Symfony 7.3 beta incompatibility#61
Merged
mac-cain13 merged 3 commits intomac-cain13:masterfrom Jun 2, 2025
Merged
Conversation
Contributor
|
Yeah, but then it'll probably hit the next error message if one runs this. E.g. see below. Try getting the tests passing locally and then crack on with the next bit. |
…rgument mac-cain13#2 ($previousExitCode) must be of type int|false, array given, called in /home/umpirsky/Projects/daemonizable-command/tests/Wrep/Daemonizable/Command/EndlessCommandTest.php on line 117
Contributor
Author
|
Fixed, thanks. |
umpirsky
commented
May 30, 2025
| * @param int $signal The signal code to handle | ||
| */ | ||
| public function handleSignal(int $signal): void | ||
| public function handleSignal(int $signal, array|int|false $previousExitCode = 0): int|false |
Contributor
Author
There was a problem hiding this comment.
I added array here because of:
1) Tests\Wrep\Daemonizable\Command\EndlessCommandTest::testInterruptSigtermFromDifferentContext
TypeError: Wrep\Daemonizable\Command\EndlessCommand::handleSignal(): Argument #2 ($previousExitCode) must be of type int|false, array given, called in tests/Wrep/Daemonizable/Command/EndlessCommandTest.php on line 117
src/Wrep/Daemonizable/Command/EndlessCommand.php:83
tests/Wrep/Daemonizable/Command/EndlessCommandTest.php:117
vendor/symfony/console/Command/Command.php:318
src/Wrep/Daemonizable/Command/EndlessCommand.php:75
tests/Wrep/Daemonizable/Command/EndlessCommandTest.php:102
Soemthing that should probably be addressed later on.
Contributor
|
I've run this for a project and it seems to be working with Symfony 7.3, might be one where we merge it into a symfony 7.3 branch, let people install it and run it for a couple of weeks and then tag it for a release? |
Contributor
Author
|
Whatever brings it to a new release is fine, thanks. |
Contributor
Author
|
Any updates on this? |
Owner
|
Thanks to you both for the PR and testing it. Highly appreciated! Will merge this so we can make a release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes issue #60