[PHP plugin][PhpStorm] Multiple feature requests

Hi, I don't know if this is a proper channel for feature requests, but I'll post this here anyway. If this is not right way to do it, I hope someone will direct me to proper channel.

 

1. Extend support for type recognition when iterating over arrays with map-reduce family

By 'extend' I meant to say type recognition works for foreach loops:

However, when doing this kind of stuff:

The workaround for this case is to type-hint closure parameters.

2. Closure formatting

To my knowledge, there are no specific options for closure formatting. Currently the only supported formatting is this:

I believe I am not the only one who would much more prefer formatting like this:

3. New actions in Alt-Enter menu regarding string interpolation, concatenation and string formatting functions

Second sample is not reiterated trough all cases because it's a concatenation -> interpolation functionality applicable to multiple languages (and already present in JavaScript as "Replace with template string", though there it's one way conversion only). This feature would be PHP oriented, as it also includes string formatting functions (one could argue that this is also applicable to multiple languages, but let's keep the scope of this post on PHP).

 

2 comments
Comment actions Permalink

Hi there,

Issue Tracker-- you may post your Feature Requests there. One per ticket -- for proper management & tracking purposes as it can be assigned to different people.

Just do a search before posting new one.

1
Comment actions Permalink

Note: https://youtrack.jetbrains.com/issue/WI-28910 Infer arguments types of usort() callback ...

1

Please sign in to leave a comment.