gabordemooij / redbean

ORM layer that creates models, config and database on the fly
https://www.redbeanphp.com
2.31k stars 280 forks source link

Added TypedModel.php to replica2.php files #909

Closed aeno closed 1 year ago

aeno commented 1 year ago

\RedBeanPHP\TypedModel was missing in generated rb.php file

gabordemooij commented 1 year ago

Was the :static part not part of this feature? By including it into the main package you cannot use that anymore? (Because the main package has to be compatible with older PHP-versions). Thoughts?

aeno commented 1 year ago

The static return type is only supported since PHP 8, so it would break compatibility with older PHP versions. I guess this was not noticed until now, because the class TypedModel was not included in the distribution rb.php yet.

gabordemooij commented 1 year ago

That is why I kept it out of replica, you can add it at will manually.