Closed thekid closed 5 years ago
Maybe instead of constructor rewriting, we could do something like:
$c= new class() {
#[@test]
public function fixture();
};
// ...becomes
$c= (new class() {
public function fixture();
public function __init() { \xp::$meta[strtr(self::class, '\\', '.')]= ...; return $this; }
})->__init();
:shipit: Released in https://github.com/xp-framework/compiler/releases/tag/v4.1.0
Example:
See also xp-framework/core#226