From 851134597fa858733e86ae0fdc913251f129cca3 Mon Sep 17 00:00:00 2001 From: Mikel Martin Date: Wed, 9 Oct 2024 10:42:35 +0200 Subject: [PATCH] Restore Aspect as beforeEachMethodOfService return type --- src/BusinessLogic/Bootstrap/Aspect/Aspects.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BusinessLogic/Bootstrap/Aspect/Aspects.php b/src/BusinessLogic/Bootstrap/Aspect/Aspects.php index ab0dac5..c6fafd0 100644 --- a/src/BusinessLogic/Bootstrap/Aspect/Aspects.php +++ b/src/BusinessLogic/Bootstrap/Aspect/Aspects.php @@ -36,12 +36,12 @@ protected function __construct(Aspect $aspect) $this->aspect = $aspect; } - public static function run(Aspect $aspect): self + public static function run(Aspect $aspect): Aspects { return new static($aspect); } - public function andRun(Aspect $aspect): self + public function andRun(Aspect $aspect): Aspects { $this->aspect = new CompositeAspect($this->aspect); $this->aspect->append($aspect);