Exchanged call to deprecated method.

Related to https://scrutinizer-ci.com/g/phpDocumentor/phpDocumentor2/inspections/9e7104ef-add3-46da-9115-6f1de5404121/issues/files/src/phpDocumentor/Plugin/Core/Twig/Extension.php?status=existing&selectedLabels[0]=11&orderField=path&order=asc