diff --git a/composer.json b/composer.json index 10c604c..fa423e7 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,7 @@ "require": { "php": "^8.1", "nikic/php-parser": "^5.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", "symfony/finder": "^5.4 || ^6.4 || ^7.0", "twig/twig": "^2.0 || ^3.0", "phpstan/phpdoc-parser": "^2.3" diff --git a/src/Annotation/Desc.php b/src/Annotation/Desc.php index 32771ec..8097058 100644 --- a/src/Annotation/Desc.php +++ b/src/Annotation/Desc.php @@ -11,6 +11,7 @@ namespace Translation\Extractor\Annotation; +trigger_deprecation('php-translation/extractor', '2.3', 'The "%s" class is deprecated and will be removed soon. It is now considered as a PHPDoc tag.', Desc::class); /** * @deprecated since 2.3, this class is not used anymore. @Desc is now considered as a PHPDoc tag. * diff --git a/src/Annotation/Ignore.php b/src/Annotation/Ignore.php index bd33625..bbb9333 100644 --- a/src/Annotation/Ignore.php +++ b/src/Annotation/Ignore.php @@ -11,6 +11,7 @@ namespace Translation\Extractor\Annotation; +trigger_deprecation('php-translation/extractor', '2.3', 'The "%s" class is deprecated and will be removed soon. It is now considered as a PHPDoc tag.', Ignore::class); /** * @deprecated since 2.3, this class is not used anymore. @Ignore is now considered as a PHPDoc tag. * diff --git a/src/Annotation/Translate.php b/src/Annotation/Translate.php index 20e2852..722e740 100644 --- a/src/Annotation/Translate.php +++ b/src/Annotation/Translate.php @@ -11,6 +11,7 @@ namespace Translation\Extractor\Annotation; +trigger_deprecation('php-translation/extractor', '2.3', 'The "%s" class is deprecated and will be removed soon. It is now considered as a PHPDoc tag.', Translate::class); /** * @deprecated since 2.3, this class is not used anymore. @Translate is now considered as a PHPDoc tag. *