From 4572d3dd7c80bd9505f4a4b5fa6ca180ea5651cf Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Sun, 17 Nov 2024 06:41:53 -0500 Subject: [PATCH] use property promotion in constructor --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b31698..1061996 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,8 @@ use Setono\TagBag\TagBagInterface; class YourService { - private $tagBag; - - public function __construct(TagBagInterface $tagBag) + public function __construct(private TagBagInterface $tagBag) { - $this->tagBag = $tagBag; } public function method(): void