77use Chubbyphp \Parsing \Error ;
88use Chubbyphp \Parsing \Errors ;
99use Chubbyphp \Parsing \ErrorsException ;
10- use Chubbyphp \Parsing \Variable ;
1110
1211final class ArraySchema extends AbstractSchemaInnerParse implements SchemaInterface
1312{
@@ -110,11 +109,11 @@ public function maxItems(int $maxItems): static
110109 }
111110
112111 /**
113- * @deprecated Use exactItems($length ) instead
112+ * @deprecated Use exactItems($exactItems ) instead
114113 */
115114 public function length (int $ length ): static
116115 {
117- @trigger_error ('Use exactItems( ' .Variable:: toCode ( $ length ). ' ) instead ' , E_USER_DEPRECATED );
116+ @trigger_error ('Use exactItems($exactItems ) instead ' , E_USER_DEPRECATED );
118117
119118 return $ this ->postParse (static function (array $ array ) use ($ length ) {
120119 $ arrayLength = \count ($ array );
@@ -134,11 +133,11 @@ public function length(int $length): static
134133 }
135134
136135 /**
137- * @deprecated Use minItems($minLength ) instead
136+ * @deprecated Use minItems($minItems ) instead
138137 */
139138 public function minLength (int $ minLength ): static
140139 {
141- @trigger_error ('Use minItems( ' .Variable:: toCode ( $ minLength ). ' ) instead ' , E_USER_DEPRECATED );
140+ @trigger_error ('Use minItems($minItems ) instead ' , E_USER_DEPRECATED );
142141
143142 return $ this ->postParse (static function (array $ array ) use ($ minLength ) {
144143 $ arrayLength = \count ($ array );
@@ -158,11 +157,11 @@ public function minLength(int $minLength): static
158157 }
159158
160159 /**
161- * @deprecated Use maxItems($maxLength ) instead
160+ * @deprecated Use maxItems($maxItems ) instead
162161 */
163162 public function maxLength (int $ maxLength ): static
164163 {
165- @trigger_error ('Use maxItems( ' .Variable:: toCode ( $ maxLength ). ' ) instead ' , E_USER_DEPRECATED );
164+ @trigger_error ('Use maxItems($maxItems ) instead ' , E_USER_DEPRECATED );
166165
167166 return $ this ->postParse (static function (array $ array ) use ($ maxLength ) {
168167 $ arrayLength = \count ($ array );
@@ -199,11 +198,11 @@ public function contains(mixed $contains, bool $strict = true): static
199198 }
200199
201200 /**
202- * @deprecated use contains
201+ * @deprecated use contains($contains, $strict)
203202 */
204203 public function includes (mixed $ includes , bool $ strict = true ): static
205204 {
206- @trigger_error ('Use contains( ' .Variable:: toCode ( $ includes ). ' , ' .Variable:: toCode ( $ strict). ' ) instead ' , E_USER_DEPRECATED );
205+ @trigger_error ('Use contains($contains, $strict) instead ' , E_USER_DEPRECATED );
207206
208207 return $ this ->postParse (static function (array $ array ) use ($ includes , $ strict ) {
209208 if (!\in_array ($ includes , $ array , $ strict )) {
0 commit comments