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

Php8.4 support added #43

Open
wants to merge 1 commit into
base: 2.14.x
Choose a base branch
from

Conversation

Atul-glo35265
Copy link

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

Description

@Atul-glo35265
Copy link
Author

Atul-glo35265 commented Oct 17, 2024

@froschdesign Kindly review the PR once and do needful.

@Atul-glo35265
Copy link
Author

@gsteel, kindly review this PR once and merge it, if possible.

Copy link
Member

@alexmerlin alexmerlin left a comment

Choose a reason for hiding this comment

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

Looks good to me! 👍

*/
public function handle()
public function handle($responseHandler = null)
Copy link
Member

Choose a reason for hiding this comment

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

@alexmerlin
The class is not final therefore this cannot be correct.

Copy link
Author

Choose a reason for hiding this comment

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

@froschdesign We have made the class final. Please review once.

Copy link
Member

Choose a reason for hiding this comment

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

@Atul-glo35265 make class final is bc break, if it required, uses func_get_args() may can handle that, see https://3v4l.org/8na14

Copy link
Member

Choose a reason for hiding this comment

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

@Atul-glo35265
Changing the method signature and making a class final represent a break in backwards compatibility.

The question that arises here is why was the method changed at all? Only for tests?

Copy link
Author

Choose a reason for hiding this comment

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

@froschdesign There were 3 errors in QA Checks (PHPUnit [8.4, lowest] failure. We made changes in these respective methods to fix the issue.

I'll try to implement if we can achieve the same result by implementing func_get_args() as suggested by samsonasik

Copy link
Author

Choose a reason for hiding this comment

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

@froschdesign I've updated the version to 9.6.21 but the issue is still there.

Actually, the annotation @runinseparateprocess is causing the issue and throwing the exception. If we remove this annotation, issues related to Header already sent start coming.

I tried to upgrade PHPUnit to version ^10.0.0, but it seems we need to upgrade other dependencies as well.

Copy link
Member

Choose a reason for hiding this comment

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

@Atul-glo35265

I've updated the version to 9.6.21 but the issue is still there.

The version of PHPUnit must be changed in the composer.json file!

Copy link
Author

@Atul-glo35265 Atul-glo35265 Nov 13, 2024

Choose a reason for hiding this comment

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

@froschdesign I have updated it in composer.json file. Please check and suggest if any other changes are required.

Copy link
Member

Choose a reason for hiding this comment

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

Bump also all other packages in require-dev section.

https://getcomposer.org/doc/03-cli.md#bump

Copy link
Member

Choose a reason for hiding this comment

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

If bumping does not work, you can upgrade them manually. I just tested, they can be upgraded.

src/AutoDiscover.php Outdated Show resolved Hide resolved
@froschdesign
Copy link
Member

@Atul-glo35265
The problem is amphp/amp, so instead of upgrading PHPUnit to version 10, which introduces new problems, add older versions of amphp/amp as a conflict:

"conflict": {
    "amphp/amp":"<2.6.4"
}

Signed-off-by: Atul-glo35265 <[email protected]>
@Atul-glo35265
Copy link
Author

@Atul-glo35265 The problem is amphp/amp, so instead of upgrading PHPUnit to version 10, which introduces new problems, add older versions of amphp/amp as a conflict:

"conflict": {
    "amphp/amp":"<2.6.4"
}

Thank you @froschdesign. Please review once and do the needful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

4 participants