Implement return types and type hints - #376
Conversation
|
It seems like a good idea to me, albeit that I'm not yet very familiar with PSR12. If @euantorano doesn't have any objections, then let's go with it. A couple of issues I've discovered with the PR as it is are that:
More if/as I discover other problems. |
|
Fixed the link in the first numbered item. |
|
Hi, yes, I plan this PR to fix issues over time as they are catch. We should probably consider to not declare strict types, as to minimize backwards compatibility issues. If so, I will remove the strict declaration till the end. Regards. |
|
I'm all for type hinting wherever possible. Very glad to see a push for adding it throughout the plugin, especially as the currently supported PHP versions all support it. I would argue that keeping the strict declaration in from the start makes it far easier to catch any issues with the type hints. |
That does after all seem best. The sort of issues I noted in my first comment can then simply be fixed as they arise. |
With the intention to standardize the MyAlerts plugin and get it ready for 1.9, I suggest the following changes:
Discuss and feedback welcome.