Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It is used statically in provisionConfig_dns_zone::process() and I think it makes sense to use it that way.
Because it is not declared as static currently, verifying a site with E_STRICT on throws a notice and fails.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1295942-provision-dns-increment-serial-static.patch | 480 bytes | tstoeckler |
Comments
Comment #1
anarcat CreditAttribution: anarcat commentedsounds like a good idea.
Comment #2
tstoecklerComment #3
Steven Jones CreditAttribution: Steven Jones commentedThis is a helper function sitting in a class, so absolutely should be static. Patch applied in 6.x-2.x and 7.x-2.x.
I think we should fix 6.x-1.x, but in order to not change the API, we should just call the non-static method properly, but I'm not entirely sure how to do that within a config class.
Comment #4
tstoecklerSomething like:
??
I'll try to roll a patch...
Comment #5
anarcat CreditAttribution: anarcat commentedwe're not going to backport to 1.x.