From cbc5a5188d9eecf2e878a201351d414a1bb3bee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 4 Oct 2022 21:37:20 +0200 Subject: [PATCH] Encourage migration towards attributes We will deprecate this libary eventually. --- README.md | 6 ++++++ composer.json | 3 +++ docs/en/index.rst | 9 +++++++++ 3 files changed, 18 insertions(+) diff --git a/README.md b/README.md index c2c7eb7ba..6b8c0359b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +⚠️ PHP 8 introduced +[attributes](https://www.php.net/manual/en/language.attributes.overview.php), +which are a native replacement for annotations. As such, this library is +considered feature complete, and should receive exclusively bugfixes and +security fixes. + # Doctrine Annotations [![Build Status](https://github.com/doctrine/annotations/workflows/Continuous%20Integration/badge.svg?label=build)](https://github.com/doctrine/persistence/actions) diff --git a/composer.json b/composer.json index 62f76d217..b5839c84a 100644 --- a/composer.json +++ b/composer.json @@ -45,6 +45,9 @@ "symfony/cache": "^4.4 || ^5.4 || ^6", "vimeo/psalm": "^4.10" }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" + }, "autoload": { "psr-4": { "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" diff --git a/docs/en/index.rst b/docs/en/index.rst index 95476c313..7caffb50a 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst @@ -1,3 +1,12 @@ +Deprecation notice +================== + +PHP 8 introduced `attributes +`_, +which are a native replacement for annotations. As such, this library is +considered feature complete, and should receive exclusively bugfixes and +security fixes. + Introduction ============