PhpStorm: Extract Method - don't pass globals as parameters Permanently deleted user 创建于 2020年06月19日 07:46 Is there anyway to make the "extract function" refactoring not require that global variables are passed as parameters?
Unfortunately, there isn't. Please vote for the feature request: https://youtrack.jetbrains.com/issue/WI-8083
Thanks Eugene!