Skip to content

Commit

Permalink
Restore Aspect as beforeEachMethodOfService return type
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Oct 9, 2024
1 parent 9a9c356 commit 8511345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BusinessLogic/Bootstrap/Aspect/Aspects.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8511345

Please sign in to comment.