diff --git a/src/Concerns/Extendable.php b/src/Concerns/Extendable.php index e5758ed1..babee356 100644 --- a/src/Concerns/Extendable.php +++ b/src/Concerns/Extendable.php @@ -60,10 +60,11 @@ trait Extendable $decorators = []; foreach (self::$decorators[$name] as $decorator) { - //@phpstan-ignore-next-line + $decorators[] = $decorator->bindTo($context, $scope); } + //@phpstan-ignore-next-line return $decorators; } diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 0c6a57ab..4ecdfbc9 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -113,6 +113,9 @@ ✓ it can just define the message if given condition is true ✓ it can just define the message if given condition is 1 + PASS Tests\Features\Expect\HigherOrder\decorate + ✓ pass + PASS Tests\Features\Expect\HigherOrder\methods ✓ it can access methods ✓ it can access multiple methods @@ -720,5 +723,5 @@ ✓ it is a test ✓ it uses correct parent class - Tests: 4 incompleted, 9 skipped, 478 passed + Tests: 4 incompleted, 9 skipped, 479 passed \ No newline at end of file