Skip to content

Commit

Permalink
Deprecate package
Browse files Browse the repository at this point in the history
Users should migrate to PHP 8 attributes.
  • Loading branch information
greg0ire committed Oct 4, 2022
1 parent 516c188 commit f0740e5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
@@ -1,3 +1,7 @@
⚠️ 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
deprecated, 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)
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -65,5 +65,8 @@
"dealerdirect/phpcodesniffer-composer-installer": true
},
"sort-packages": true
},
"suggest": {
"php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations"
}
}
8 changes: 8 additions & 0 deletions docs/en/index.rst
@@ -1,3 +1,11 @@
Deprecation notice
==================

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
deprecated, and should receive exclusively bugfixes and security fixes.

Introduction
============

Expand Down

0 comments on commit f0740e5

Please sign in to comment.