Fixed deprecated issues

Fixed #11
Fixed https://github.com/phpDocumentor/phpDocumentor2/issues/1316