Skip to content

Commit 90ef45e

Browse files
authored
Merge pull request #3 from sylvainraye/patch-1
BUGFIX: undefined variable $expectedType
2 parents f4d0912 + fcee909 commit 90ef45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UnexpectedYieldedValueType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function expectingTypes(\Generator $coroutine, array $expectedType
5454
strtr(
5555
'Invalid yielded data, was expecting %expected%, got %actual%. Coroutine was declared in a terminated generator, could not fetch the declaration metadata.',
5656
[
57-
'%expected%' => $expectedType,
57+
'%expected%' => implode(' or ', $expectedTypes),
5858
'%actual%' => is_object($actual) ? get_class($actual) : gettype($actual),
5959
]
6060
),

0 commit comments

Comments
 (0)