Skip to content

Commit

Permalink
Fix code and test
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 1, 2019
1 parent f21150b commit 27c9aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ private static function handlePossiblyMatchingByRefParam(
}

if ($template_result && $by_ref_out_type) {
$original_by_ref_out_type = clone $by_ref_type;
$original_by_ref_out_type = clone $by_ref_out_type;

$by_ref_out_type = UnionTemplateHandler::replaceTemplateTypesWithStandins(
clone $by_ref_out_type,
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/FunctionTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ function example_sort_by_ref(array &$arr): bool {
/**
* @param array<int, array{0: int, 1: string}> $array
* @return array<int, array{0: int, 1: string}>
* @return list<array{0: int, 1: string}>
*/
function example(array $array): array {
example_sort_by_ref($array);
Expand Down

0 comments on commit 27c9aa4

Please sign in to comment.