TYPO3 Dynamic Return Type code completion
When using PhpStorm:
- install DynamicReturnTypePlugin from http://plugins.jetbrains.com/plugin/7251?pr=phpStorm&showAllUpdates=true
- add dynamicReturnTypeMeta.json to your TYPO3 CMS project root
- live a better life
You're welcome, you owe me a beer.
For those, who have deal with 4.5, following snippet could be quite useful :
I will add some explication of the DynamicReturnType plugin :
Using the DynamicReturnTypePlugin, PHPStorm will know that '$view' is of type 'Tx_Fluid_View_StandaloneView' and will be able to autosuggest all of the functions available to an object of that type, as well as do code-inspection to pick up any obvious type errors.