[TASK] Add return types, parameter types and clean up doc comments#188
[TASK] Add return types, parameter types and clean up doc comments#188simonschaufi wants to merge 1 commit intoIchHabRecht:mainfrom
Conversation
7db03e9 to
35c0055
Compare
35c0055 to
36d225e
Compare
|
Hi @simonschaufi, |
|
PHP annotations don't inform the developer if you pass a wrong data type into a function, for example, while parameter types declare which strict data type is expected and must be returned. If input or output doesn't match, a fatal error will happen, which in the end tells the developer that he did something wrong. This improves the code and fewer mistakes will happen when refactoring the code at some point in the future. The core does the same thing for v12: https://forge.typo3.org/issues/97210 |
|
Hi @simonschaufi, |
|
it seams this extension is dead |
No description provided.