-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add required key attribute #29174
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
Add required key attribute #29174
Conversation
I am getting warnings when running tests with recent phpunit versions: > - Element 'element': The attribute 'key' is required but missing. This requirement is far from being new, what is recent is phpunit validating its configuration file against the XSD schema. See sebastianbergmann/phpunit@d4484be
9dd1cb5
to
c0733c2
Compare
🤔 looks like there are more issues to fix:
That one is probably an issue with the XSD url being outdate, because I can see these attributes here: https://github.com/sebastianbergmann/phpunit/blob/master/phpunit.xsd I think 5.2 should probably be used here: sebastianbergmann/phpunit@7e06a82 It validates if I use http://schema.phpunit.de/5.2/phpunit.xsd . Composer seems to say lower versions should be allowed though: Line 98 in 46e3745
What is the right call here? I think I should change the url. I also checked the other phpunit config files in the project, they all validate against that version of the XSD:
|
Let's change the URL yes. Since lowest versions of phpunit don't care about it, there is no issue doing so. |
I will make a separate PR for this, since there are a lot more files to change. |
See #29175 |
Thank you @greg0ire. |
This PR was merged into the 2.8 branch. Discussion ---------- Add required key attribute | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a I am getting warnings when running tests with recent phpunit versions (since 7.2.0) : > `- Element 'element': The attribute 'key' is required but missing.` This requirement is far from being new, what is recent is phpunit validating its configuration file against the XSD schema. See sebastianbergmann/phpunit@d4484be This is pedantic (not a bugfix), and might be a bit painful to merge upstream, so if you feel like I should target a more recent instead and let the old branches go on with their lives, please tell me. Commits ------- c0733c2 Add required key attribute
I am getting warnings when running tests with recent phpunit versions (since 7.2.0) :
This requirement is far from being new, what is recent is phpunit
validating its configuration file against the XSD schema.
See sebastianbergmann/phpunit@d4484be
This is pedantic (not a bugfix), and might be a bit painful to merge upstream, so if you feel like I should target a more recent instead and let the old branches go on with their lives, please tell me.