You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would recommend fork h2o, then add additional logic in Context#resolve before the return value before the applyFilters
function resolve($var) {
....
if (is_object($result)) {
// check existence of __toString on the class definition then overwrite $result
}
$result = $this->applyFilters($result,$filters);
return $result;
}
When a
VariableNode()
resolves an object, it is not printed as string.This could be done using the
__toString()
method.Where could this be implemented?
The source was a bit unclear for me, whether that needs to happen in
resolve()
,getVariable()
orescape()
The text was updated successfully, but these errors were encountered: