battis / restful-api

https://battis.github.io/restful-api/
0 stars 0 forks source link

sort out late static binding and static properties and why this isn't working #32

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

https://github.com/battis/crud/blob/99d86a42741fbf22ffcecd9c090ba92c47a03bca/src/Record.php#L28


    protected static function getSpec(): Spec
    {
        // TODO: sort out late static binding and static properties and why this isn't working
        //if (empty(static::$spec)) {
        static::$spec = static::defineSpec();
        //}