When I have for example this code:
function myfunction ()
return 'ABC' . $parameter;
If I place the cursor on the $parameter variable and open the intention menu by hitting Alt + Enter and select "Create parameter", PhpStorm refuses to create the parameter because the function is already called in the source code. While I understand that it's not good to break existing code by adding more parameters, I think this behavior could be improved.
1. Ask if the users really want to add a parameter when the function has usages.
2. Offer to make the new parameter optional by defining a default value.
For me it would be just perfect if I could just ignore the error message and force PhpStorm to add the new parameter even if the function had usages. I can then go to fix the function calls manually.
Thank you for your support!