Skip to content

Allow negative priorities for hook methods #6120

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

Closed

Conversation

nikophil
Copy link
Contributor

@nikophil nikophil commented Feb 6, 2025

Hello,

I think it is perfectly valid to have negative priorities for hook methods. This allows to chose to occur after another hook method which does not have a priority

@sebastianbergmann
Copy link
Owner

This branch has conflicts that must be resolved.

@sebastianbergmann sebastianbergmann added type/enhancement A new idea that should be implemented feature/test-runner CLI test runner feature/metadata/attributes labels Feb 6, 2025
@sebastianbergmann sebastianbergmann added this to the PHPUnit 12.1 milestone Feb 6, 2025
@nikophil nikophil changed the base branch from main to 11.5 February 6, 2025 08:13
@nikophil
Copy link
Contributor Author

nikophil commented Feb 6, 2025

@sebastianbergmann sorry, it is meant to be based on 11.5 since this is a fix

@sebastianbergmann sebastianbergmann removed this from the PHPUnit 12.1 milestone Feb 6, 2025
@sebastianbergmann sebastianbergmann changed the title fix(hooks): allow negative priorities Allow negative priorities for hook methodfs Feb 6, 2025
@sebastianbergmann sebastianbergmann changed the title Allow negative priorities for hook methodfs Allow negative priorities for hook methods Feb 6, 2025
@sebastianbergmann
Copy link
Owner

Merged manually, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/metadata/attributes feature/test-runner CLI test runner type/enhancement A new idea that should be implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants