fix tests

This commit is contained in:
Fabio Ivona
2021-10-08 16:35:31 +02:00
parent e92d9bfaae
commit ba9b06adf3
2 changed files with 6 additions and 2 deletions

View File

@ -60,10 +60,11 @@ trait Extendable
$decorators = []; $decorators = [];
foreach (self::$decorators[$name] as $decorator) { foreach (self::$decorators[$name] as $decorator) {
//@phpstan-ignore-next-line
$decorators[] = $decorator->bindTo($context, $scope); $decorators[] = $decorator->bindTo($context, $scope);
} }
//@phpstan-ignore-next-line
return $decorators; return $decorators;
} }

View File

@ -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 true
✓ it can just define the message if given condition is 1 ✓ it can just define the message if given condition is 1
PASS Tests\Features\Expect\HigherOrder\decorate
✓ pass
PASS Tests\Features\Expect\HigherOrder\methods PASS Tests\Features\Expect\HigherOrder\methods
✓ it can access methods ✓ it can access methods
✓ it can access multiple methods ✓ it can access multiple methods
@ -720,5 +723,5 @@
✓ it is a test ✓ it is a test
✓ it uses correct parent class ✓ it uses correct parent class
Tests: 4 incompleted, 9 skipped, 478 passed Tests: 4 incompleted, 9 skipped, 479 passed