Find function usages with certain optional parameter specified

Say I have the following function:

function foo($param1, $param2 = null, $param3 = null, $param4 = 'test')
{
// ...
}

Is there a way to find usages of this function where optional parameter "$param3" is specified?

2 comments
Comment actions Permalink

Hi there,

Use SSR (Structural Search and Replace) functionality: https://www.jetbrains.com/help/phpstorm/structural-search-and-replace.html

Also (recent similar question on SO): https://stackoverflow.com/a/62544002/783119

1
Comment actions Permalink

Thank you for fast and clear answer!

0

Please sign in to leave a comment.