git log -p -S 'method-class-variable-name-to-find' --all -- .\Namespace\FileToLookInto.php

git show a4283169fb5c4335ff916376d5dfc65c34b16f27 //commit number from previous command