Patch the getEnv() method of the Http\Request class