Fix phpdoc and function scope

``operator`` rather than ``element``