-
Notifications
You must be signed in to change notification settings - Fork 40
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
revert entityType() so that it is not static (breaks lots of contrib) #3809
Comments
...adding some excerpts from the related discussions on Gitter:
|
RTBC code-wise. @quicksketch still to chime in as to whether this change was in fact required for anything. |
If the revert goes into a release, let's explicitly point to it, so that people who patched their contrib modules know that they can / should revert the patches. |
@olafgrabienski We know that it is a fatal error to have core be static and contrib not static. I'm curious if there would be a problem if core was not static (ie. we roll that part back in core) and contrib was static (ie. a patched module didn't get unpatched). If I get a chance I'll test. |
I was thinking the same thing. In fact, I've created a new PR that only reverts the base class and leaves all the others static: backdrop/backdrop#2699
|
...sounds like good/safe thinking @jenlampton 👍 ...perhaps add a note in the docblock to explain that this needs to remain non-static (while the other classes have been changed) in order to not break contrib + plus link to this ticket here. |
okay, my tests disappeared(?) so I had to push an updated PR anyway. Here's what I have for documentation:
|
Well, the experiment reveals that you can't change static/non-static methods in either direction.
So we're back to the original RTBC PR. |
Thanks for testing @jenlampton it was worth a try. |
Looks good to me. When that change was made I didn't think of inheriting classes in contrib. Or I thought inheriting classes didn't need to also be made static. Having those methods static would be helpful in some situations, but we can get the same information from I've merged backdrop/backdrop#2698 into 1.x and 1.13.x. We'll want to make a release ASAP to fix this. |
It looks like we'll need to revert or partially revert some of #3011 Add
entity_access()
This issue had some unforeseen complications that are breaking a lot of contrib.
See:
PR: reverts all enityType() functions: backdrop/backdrop#2698
PR: alternate approach that only reverts the base class: backdrop/backdrop#2699breaks everything!The text was updated successfully, but these errors were encountered: