Skip to content

Commit

Permalink
Updated trace message in DictType error messages on values
Browse files Browse the repository at this point in the history
Co-authored-by: Saif Eddin Gmati <29315886+azjezz@users.noreply.github.com>
  • Loading branch information
Ocramius and azjezz committed Sep 8, 2021
1 parent 8d6f131 commit 9e17a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psl/Type/Internal/DictType.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function assert(mixed $value): array
$trace->withFrame('dict<' . $this->key_type->toString() . ', _>')
);
$value_type = $this->value_type->withTrace(
$trace->withFrame('dict<_, ' . $this->value_type->toString() . ', _>')
$trace->withFrame('dict<_, ' . $this->value_type->toString() . '>')
);

$result = [];
Expand Down

0 comments on commit 9e17a34

Please sign in to comment.