Issue #2755545 by michielnugter, balagan: Docblock shows wrong code to use instead of deprecated functions (cherry picked from commit 4f8869ca)