-
-
Notifications
You must be signed in to change notification settings - Fork 154
[improvement] PHP 7.4 property generation #856
Description
Still the same subject :)
Right now the templates use to generates property use a phpdoc block to declare the type.
I would like to add a new templates that will add the type in the property declaration instead.
In order to handle multiple versions I was wondering if we could handle different templates by version.
Like adding a folder templates/7.4 for PHP 7.4 and templates/default if there is directory for the currently configured version.
We would also need to depreciate the templates/ folder without a subdirectory. So it is still used for know if templates/default does not exists.
For the PHP version itself, I think we should resolved it automatically but still provide a way to override it.
For example, I'm working with PHP 7.4 on my computer but at work the project run with PHP 7.2.
So we need to be able to override it.
It's a lot of changes so I would like to know where you stand on that matter.
I think it will be a plus to be able to add functionality in the future but I would understand if you prefer to wait for know and just let the user override the templates itself.