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.
objects need to be cloned, if not then upon retrieval you will get the serialized object instead of the object which of course will break.
Comment | File | Size | Author |
---|---|---|---|
object_set.patch | 660 bytes | chx |
Comments
Comment #1
lyricnz CreditAttribution: lyricnz commentedWouldn't the same apply for arrays? Perhaps the test should be !is_string()?
Comment #2
robertDouglass CreditAttribution: robertDouglass commented@lyricnz: Warning: __clone method called on non-object will happen if you try to clone an array.
Comment #3
robertDouglass CreditAttribution: robertDouglass commentedThanks, committed.
Comment #4
(not verified) CreditAttribution: commented