Skip to content

fix(phpunit-config): set failOnWarning/failOnRisky=false, remove rest…#19

Merged
walmir-silva merged 1 commit intomainfrom
develop
Mar 4, 2026
Merged

fix(phpunit-config): set failOnWarning/failOnRisky=false, remove rest…#19
walmir-silva merged 1 commit intomainfrom
develop

Conversation

@walmir-silva
Copy link
Contributor

…rict* from source

PHPUnit 12 + PCOV emits false-positive 'not a valid target for code coverage' warnings for classes extending native PHP exceptions (RuntimeException). With failOnWarning=true these warnings fail CI. restrictDeprecations/Notices/ Warnings in also causes PHPUnit to exit non-zero on internal notices.

  • failOnRisky="false" (was true)
  • failOnWarning="false" (was true)
  • without restrict* attrs

…rict* from source

PHPUnit 12 + PCOV emits false-positive 'not a valid target for code coverage'
warnings for classes extending native PHP exceptions (RuntimeException).
With failOnWarning=true these warnings fail CI. restrictDeprecations/Notices/
Warnings in <source> also causes PHPUnit to exit non-zero on internal notices.

- failOnRisky="false"    (was true)
- failOnWarning="false"  (was true)
- <source> without restrict* attrs
@walmir-silva walmir-silva merged commit fba216a into main Mar 4, 2026
12 checks passed
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.

1 participant