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

Make phpunit fail on deprecation warnings #989

Merged
merged 6 commits into from Mar 17, 2024
Merged

Make phpunit fail on deprecation warnings #989

merged 6 commits into from Mar 17, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 17, 2024

No description provided.

@staabm
Copy link
Contributor Author

staabm commented Mar 17, 2024

interessting.. locally I get phpunit fail instead of accepting the error after this PR. I think this means the deprecation warning is not emitted at all in CI

@staabm
Copy link
Contributor Author

staabm commented Mar 17, 2024

ok, we can see CI failling now. will re-revert the initial fix now

@staabm
Copy link
Contributor Author

staabm commented Mar 17, 2024

@nikic I think this fix should cover us in the future

//cc @samsonasik

@staabm
Copy link
Contributor Author

staabm commented Mar 17, 2024

opened a setup-php bug shivammathur/setup-php#827

@@ -49,6 +49,7 @@ jobs:
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: "error_reporting=2147483647" # E_ALL
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
ini-values: "error_reporting=2147483647" # E_ALL
ini-values: "error_reporting=E_ALL"

Does this not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

seems to work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

phpunit.xml.dist Show resolved Hide resolved
@staabm staabm force-pushed the fail branch 2 times, most recently from 55393f4 to df37974 Compare March 17, 2024 08:56
…ameter on PrintableNewAnonClassNode (nikic#987)""

This reverts commit 71a8b79.
@nikic nikic merged commit 4d36e9c into nikic:4.x Mar 17, 2024
10 checks passed
@nikic
Copy link
Owner

nikic commented Mar 17, 2024

Quite unexpected behavior to me ... guess it's time to go through all my repos and add ini-file: "development" to CI actions.

@staabm staabm deleted the fail branch March 17, 2024 09:05
@staabm
Copy link
Contributor Author

staabm commented Mar 17, 2024

Quite unexpected behavior to me

agree. the author agrees too. its planned for the next major, because its a breaking change.

see shivammathur/setup-php#827 (comment)

nikic pushed a commit that referenced this pull request Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants