From ba9b06adf3b29c25192e9289f39c30e68e76b0dc Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Fri, 8 Oct 2021 16:35:31 +0200 Subject: [PATCH] fix tests --- src/Concerns/Extendable.php | 3 ++- tests/.snapshots/success.txt | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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