Fixed method call.

Related to https://github.com/phpDocumentor/phpDocumentor2/pull/1145