Skip to content

Commit

Permalink
Merge pull request #3 from sylvainraye/patch-1
Browse files Browse the repository at this point in the history
BUGFIX: undefined variable $expectedType
  • Loading branch information
gplanchat authored Aug 5, 2021
2 parents f4d0912 + fcee909 commit 90ef45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UnexpectedYieldedValueType.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function expectingTypes(\Generator $coroutine, array $expectedType
strtr(
'Invalid yielded data, was expecting %expected%, got %actual%. Coroutine was declared in a terminated generator, could not fetch the declaration metadata.',
[
'%expected%' => $expectedType,
'%expected%' => implode(' or ', $expectedTypes),
'%actual%' => is_object($actual) ? get_class($actual) : gettype($actual),
]
),
Expand Down

0 comments on commit 90ef45e

Please sign in to comment.