When the code for "future verification", testing it in PHP 5.4, I get a warning that I do not understand.
function __clone() { $this->changed = TRUE; foreach ($this->conditions as $key => $condition) { if ( $condition['field'] instanceOf QueryConditionInterface) { $this->conditions[$key]['field'] = clone($condition['field']); } } }
I burst $condition['field'] into my own line to reduce the amount of code I need to focus on. PHP has this to say about this particular line
Warning: Invalid 'field' line offset in DatabaseCondition->__clone()
And I just don’t see how the “field” is an illegal line offset. I assume that I will simply miss something obvious, but if the community cannot find the problem, I will write an error report.
I interpret the warning as “under no circumstances is the field a“ valid key. ”This error would make sense if I tried, for example, an array as a key.
Letharion
source share