public function walk($value, Type $type) { if ($value instanceof \Psc\Data\Exportable) { return $value->export(); } if ($type instanceof ObjectType && $value === NULL) { return NULL; } return parent::walk($value, $type); }
public function walk($value, Type $type) { if ($value instanceof DoctrineAnnotation || $value instanceof PscAnnotation) { return $this->writeAnnotation($value); } return parent::walk($value, $type); }