Closed shijunti19 closed 10 months ago
You can refer to the http clientt example: https://github.com/phper-framework/phper/blob/4216735819f239931a96b75872ec5e16f84382c0/examples/http-client/tests/php/test.php#L22-L25
@jmjoy Not quite the same, he's static
class.add_static_method("get", Visibility::Public, |_| {
Why you register get
as static method? it's membership method in your code.
//How should I return here to continue calling Ok::<_, phper::Error>(this_class.to_ref_owned())
If returning self in non static state in static state for example: