Pull request to fix issue #3120

I have updated the doc block for the return type. Any feedback is welcome.