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.
@see Title.
This is completely unnecessary and weird:
if (!in_array('Drupal\Core\FileTransfer\ChmodInterface', class_implements(get_class($this)))) {
...
}
Comment | File | Size | Author |
---|---|---|---|
#1 | instanceof-1983136-1.patch | 684 bytes | fubhy |
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedComment #2
enhdless CreditAttribution: enhdless commentedPatch works great.
Comment #3
chx CreditAttribution: chx commentedThat's really weird. The patch is correct but did you run git blame ; did you look why such a weird thing was done?
Comment #4
fubhy CreditAttribution: fubhy commented1: instanceof-1983136-1.patch queued for re-testing.
Comment #5
fubhy CreditAttribution: fubhy commentedNope, didn't do that yet. I guess I thought it was just overlooked at some point in a larger patch. Git blame reveals that it was moved in https://drupal.org/node/1323124 and originally implemented in https://drupal.org/node/602520 which was in 2009. That issue doesn't really explain why it was implemented like this specifically. It's a short issue with quick commit and only 3 people involved so maybe that (and lacking OO experience back in 2009) is the reason ;).
Comment #6
chx CreditAttribution: chx commentedYes, that sounds correct, thanks for looking. I am always curious when something is out of line -- either maybe there was a reason (we know PHP is ...) or maybe there are other instances but neither seems to be case so we are good.
Comment #7
webchickCommitted and pushed to 8.x. Nice clean-up!