Fixes #2448 : Solve php method not found issue