zephir
zephir copied to clipboard
Type for class properties
I suggest to add types for class properties
It gains:
@paramdocblocks for getter/setters- Type control for parameter in set method
- Static analysis
namespace Test;
class Application {
property <Di> di {get, set};
/**
* Optional?
*/
property <Request> {get, set = null};
}
And require and optional
+1
+1
:+1:
+1