Add deprecated version condition

Related to https://github.com/phpDocumentor/phpDocumentor2/issues/617
Merge pull request #8 from siad007/patch-4

Add deprecated version condition