Add deprecated version condition

Related to https://github.com/phpDocumentor/phpDocumentor2/issues/617