This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #707 Add PHP 8.0 attributes support (Yoann-TYT)
This PR was squashed before being merged into the 6.0.x-dev branch. Discussion ---------- Add PHP 8.0 attributes support # Add PHP 8.0 attributes support ## Using PHP attributes if we start a new project on PHP 8.0 Instead of using classic doctrine annotations ```php /** * @Cache(public=true, maxage="0", smaxage="1 month") * @IsGranted("ROLE_ADMIN") */ public function foo() { } ``` We should use attributes PHP 8.0 ```php #[Cache(public: true, maxage: '0', smaxage: '1 month')] #[IsGranted('ROLE_ADMIN')] public function foo() { } ``` ### Note for Etag attribute In the documentation, we use Etag ( not etag or ETag used in the unit tests ). So, to simplify the code, I suggest to fix the unit test. What do you think about that ? Thank you for your reading :) Commits ------- ec5a467 Add PHP 8.0 attributes support
- Loading branch information
Showing
29 changed files
with
738 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.