phper-framework / phper

The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
Other
296 stars 18 forks source link

Support class static properties #137

Closed jmjoy closed 1 year ago

jmjoy commented 1 year ago

How to add static variables

Should we add a method? class.add_static_property("count", Visibility::Public, "");

Alright, I will add it later.

Originally posted by @jmjoy in https://github.com/phper-framework/phper/issues/136#issuecomment-1804920673