Hello app devs,
With Nextcloud 24 the PHP7.3 support ends. Now we can use typed properties. They are also handy for entities.
It looks like we can also use them for automatic derivation of type information, so that we do not have to use the $this->addType('counter', 'int');
boilerplate anymore.
Quick performance comparisons do not show any significant downside:
https://3v4l.org/tfOCo/perf vs https://3v4l.org/BZeMa/perf
Let me know what you think.
Cheers,
Christoph