@@ -48,9 +48,9 @@ public function coerce(mixed $value): array
48
48
{
49
49
if (is_iterable ($ value )) {
50
50
$ key_trace = $ this ->getTrace ()
51
- ->withFrame (Str \format ('array <%s, _> ' , $ this ->key_type ->toString ()));
51
+ ->withFrame (Str \format ('dict <%s, _> ' , $ this ->key_type ->toString ()));
52
52
$ value_trace = $ this ->getTrace ()
53
- ->withFrame (Str \format ('array <_, %s> ' , $ this ->value_type ->toString ()));
53
+ ->withFrame (Str \format ('dict <_, %s> ' , $ this ->value_type ->toString ()));
54
54
55
55
$ key_type = $ this ->key_type ->withTrace ($ key_trace );
56
56
$ value_type = $ this ->value_type ->withTrace ($ value_trace );
@@ -82,9 +82,9 @@ public function assert(mixed $value): array
82
82
{
83
83
if (is_array ($ value )) {
84
84
$ key_trace = $ this ->getTrace ()
85
- ->withFrame (Str \format ('array <%s, _> ' , $ this ->key_type ->toString ()));
85
+ ->withFrame (Str \format ('dict <%s, _> ' , $ this ->key_type ->toString ()));
86
86
$ value_trace = $ this ->getTrace ()
87
- ->withFrame (Str \format ('array <_, %s> ' , $ this ->value_type ->toString ()));
87
+ ->withFrame (Str \format ('dict <_, %s> ' , $ this ->value_type ->toString ()));
88
88
89
89
$ key_type = $ this ->key_type ->withTrace ($ key_trace );
90
90
$ value_type = $ this ->value_type ->withTrace ($ value_trace );
@@ -107,6 +107,6 @@ public function assert(mixed $value): array
107
107
108
108
public function toString (): string
109
109
{
110
- return Str \format ('array <%s, %s> ' , $ this ->key_type ->toString (), $ this ->value_type ->toString ());
110
+ return Str \format ('dict <%s, %s> ' , $ this ->key_type ->toString (), $ this ->value_type ->toString ());
111
111
}
112
112
}
0 commit comments