Skip to content

Commit 33311a9

Browse files
committed
Remove complex types from @method tags to keep PHPstorm happy
1 parent 0de27dc commit 33311a9

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

src/Assert.php

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* @method static void isIterable(mixed $value, string $message = '', string $exception = '')
5050
* @method static void isInstanceOf(mixed $value, string|object $class, string $message = '', string $exception = '')
5151
* @method static void notInstanceOf(mixed $value, string|object $class, string $message = '', string $exception = '')
52-
* @method static void isInstanceOfAny(mixed $value, array<object|string> $classes, string $message = '', string $exception = '')
52+
* @method static void isInstanceOfAny(mixed $value, array $classes, string $message = '', string $exception = '')
5353
* @method static void isAOf(string|object $value, string $class, string $message = '', string $exception = '')
5454
* @method static void isNotA(string|object $value, string $class, string $message = '', string $exception = '')
5555
* @method static void isAnyOf(string|object $value, string[] $classes, string $message = '', string $exception = '')
@@ -163,14 +163,14 @@
163163
* @method static void allIsInstanceOf(mixed $value, string|object $class, string $message = '', string $exception = '')
164164
* @method static void nullOrNotInstanceOf(mixed $value, string|object $class, string $message = '', string $exception = '')
165165
* @method static void allNotInstanceOf(mixed $value, string|object $class, string $message = '', string $exception = '')
166-
* @method static void nullOrIsInstanceOfAny(mixed $value, array<object|string> $classes, string $message = '', string $exception = '')
167-
* @method static void allIsInstanceOfAny(mixed $value, array<object|string> $classes, string $message = '', string $exception = '')
166+
* @method static void nullOrIsInstanceOfAny(mixed $value, array $classes, string $message = '', string $exception = '')
167+
* @method static void allIsInstanceOfAny(mixed $value, array $classes, string $message = '', string $exception = '')
168168
* @method static void nullOrIsAOf(object|string|null $value, string $class, string $message = '', string $exception = '')
169169
* @method static void allIsAOf(object|string|null $value, string $class, string $message = '', string $exception = '')
170170
* @method static void nullOrIsNotA(object|string|null $value, string $class, string $message = '', string $exception = '')
171-
* @method static void allIsNotA(iterable<object|string> $value, string $class, string $message = '', string $exception = '')
171+
* @method static void allIsNotA(array $value, string $class, string $message = '', string $exception = '')
172172
* @method static void nullOrIsAnyOf(object|string|null $value, string[] $classes, string $message = '', string $exception = '')
173-
* @method static void allIsAnyOf(iterable<object|string> $value, string[] $classes, string $message = '', string $exception = '')
173+
* @method static void allIsAnyOf(array $value, string[] $classes, string $message = '', string $exception = '')
174174
* @method static void nullOrIsEmpty(mixed $value, string $message = '', string $exception = '')
175175
* @method static void allIsEmpty(mixed $value, string $message = '', string $exception = '')
176176
* @method static void nullOrNotEmpty(mixed $value, string $message = '', string $exception = '')
@@ -192,7 +192,7 @@
192192
* @method static void nullOrEmail(mixed $value, string $message = '', string $exception = '')
193193
* @method static void allEmail(mixed $value, string $message = '', string $exception = '')
194194
* @method static void nullOrUniqueValues(array|null $values, string $message = '', string $exception = '')
195-
* @method static void allUniqueValues(iterable<array> $values, string $message = '', string $exception = '')
195+
* @method static void allUniqueValues(array $values, string $message = '', string $exception = '')
196196
* @method static void nullOrEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
197197
* @method static void allEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
198198
* @method static void nullOrNotEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
@@ -216,55 +216,55 @@
216216
* @method static void nullOrInArray(mixed $value, array $values, string $message = '', string $exception = '')
217217
* @method static void allInArray(mixed $value, array $values, string $message = '', string $exception = '')
218218
* @method static void nullOrContains(string|null $value, string $subString, string $message = '', string $exception = '')
219-
* @method static void allContains(iterable<string> $value, string $subString, string $message = '', string $exception = '')
219+
* @method static void allContains(string[] $value, string $subString, string $message = '', string $exception = '')
220220
* @method static void nullOrNotContains(string|null $value, string $subString, string $message = '', string $exception = '')
221-
* @method static void allNotContains(iterable<string> $value, string $subString, string $message = '', string $exception = '')
221+
* @method static void allNotContains(string[] $value, string $subString, string $message = '', string $exception = '')
222222
* @method static void nullOrNotWhitespaceOnly(string|null $value, string $message = '', string $exception = '')
223-
* @method static void allNotWhitespaceOnly(iterable<string> $value, string $message = '', string $exception = '')
223+
* @method static void allNotWhitespaceOnly(string[] $value, string $message = '', string $exception = '')
224224
* @method static void nullOrStartsWith(string|null $value, string $prefix, string $message = '', string $exception = '')
225-
* @method static void allStartsWith(iterable<string> $value, string $prefix, string $message = '', string $exception = '')
225+
* @method static void allStartsWith(string[] $value, string $prefix, string $message = '', string $exception = '')
226226
* @method static void nullOrNotStartsWith(string|null $value, string $prefix, string $message = '', string $exception = '')
227-
* @method static void allNotStartsWith(iterable<string> $value, string $prefix, string $message = '', string $exception = '')
227+
* @method static void allNotStartsWith(string[] $value, string $prefix, string $message = '', string $exception = '')
228228
* @method static void nullOrStartsWithLetter(mixed $value, string $message = '', string $exception = '')
229-
* @method static void allStartsWithLetter(mixed $value, string $message = '', string $exception = '')
229+
* @method static void allStartsWithLetter(string[] $value, string $message = '', string $exception = '')
230230
* @method static void nullOrEndsWith(string|null $value, string $suffix, string $message = '', string $exception = '')
231-
* @method static void allEndsWith(iterable<string> $value, string $suffix, string $message = '', string $exception = '')
231+
* @method static void allEndsWith(string[] $value, string $suffix, string $message = '', string $exception = '')
232232
* @method static void nullOrNotEndsWith(string|null $value, string $suffix, string $message = '', string $exception = '')
233-
* @method static void allNotEndsWith(iterable<string> $value, string $suffix, string $message = '', string $exception = '')
233+
* @method static void allNotEndsWith(string[] $value, string $suffix, string $message = '', string $exception = '')
234234
* @method static void nullOrRegex(string|null $value, string $prefix, string $message = '', string $exception = '')
235-
* @method static void allRegex(iterable<string> $value, string $prefix, string $message = '', string $exception = '')
235+
* @method static void allRegex(string[] $value, string $prefix, string $message = '', string $exception = '')
236236
* @method static void nullOrNotRegex(string|null $value, string $prefix, string $message = '', string $exception = '')
237-
* @method static void allNotRegex(iterable<string> $value, string $prefix, string $message = '', string $exception = '')
237+
* @method static void allNotRegex(string[] $value, string $prefix, string $message = '', string $exception = '')
238238
* @method static void nullOrUnicodeLetters(mixed $value, string $message = '', string $exception = '')
239239
* @method static void allUnicodeLetters(mixed $value, string $message = '', string $exception = '')
240240
* @method static void nullOrAlpha(mixed $value, string $message = '', string $exception = '')
241-
* @method static void allAlpha(mixed $value, string $message = '', string $exception = '')
241+
* @method static void allAlpha(string[] $value, string $message = '', string $exception = '')
242242
* @method static void nullOrDigits(string|null $value, string $message = '', string $exception = '')
243-
* @method static void allDigits(iterable<string> $value, string $message = '', string $exception = '')
243+
* @method static void allDigits(string[] $value, string $message = '', string $exception = '')
244244
* @method static void nullOrAlnum(string|null $value, string $message = '', string $exception = '')
245-
* @method static void allAlnum(iterable<string> $value, string $message = '', string $exception = '')
245+
* @method static void allAlnum(string[] $value, string $message = '', string $exception = '')
246246
* @method static void nullOrLower(string|null $value, string $message = '', string $exception = '')
247-
* @method static void allLower(iterable<string> $value, string $message = '', string $exception = '')
247+
* @method static void allLower(string[] $value, string $message = '', string $exception = '')
248248
* @method static void nullOrUpper(string|null $value, string $message = '', string $exception = '')
249-
* @method static void allUpper(iterable<string> $value, string $message = '', string $exception = '')
249+
* @method static void allUpper(string[] $value, string $message = '', string $exception = '')
250250
* @method static void nullOrLength(string|null $value, int $length, string $message = '', string $exception = '')
251-
* @method static void allLength(iterable<string> $value, int $length, string $message = '', string $exception = '')
251+
* @method static void allLength(string[] $value, int $length, string $message = '', string $exception = '')
252252
* @method static void nullOrMinLength(string|null $value, int|float $min, string $message = '', string $exception = '')
253-
* @method static void allMinLength(iterable<string> $value, int|float $min, string $message = '', string $exception = '')
253+
* @method static void allMinLength(string[] $value, int|float $min, string $message = '', string $exception = '')
254254
* @method static void nullOrMaxLength(string|null $value, int|float $max, string $message = '', string $exception = '')
255-
* @method static void allMaxLength(iterable<string> $value, int|float $max, string $message = '', string $exception = '')
255+
* @method static void allMaxLength(string[] $value, int|float $max, string $message = '', string $exception = '')
256256
* @method static void nullOrLengthBetween(string|null $value, int|float $min, int|float $max, string $message = '', string $exception = '')
257-
* @method static void allLengthBetween(iterable<string> $value, int|float $min, int|float $max, string $message = '', string $exception = '')
257+
* @method static void allLengthBetween(string[] $value, int|float $min, int|float $max, string $message = '', string $exception = '')
258258
* @method static void nullOrFileExists(mixed $value, string $message = '', string $exception = '')
259259
* @method static void allFileExists(mixed $value, string $message = '', string $exception = '')
260260
* @method static void nullOrFile(mixed $value, string $message = '', string $exception = '')
261261
* @method static void allFile(mixed $value, string $message = '', string $exception = '')
262262
* @method static void nullOrDirectory(mixed $value, string $message = '', string $exception = '')
263263
* @method static void allDirectory(mixed $value, string $message = '', string $exception = '')
264264
* @method static void nullOrReadable(string|null $value, string $message = '', string $exception = '')
265-
* @method static void allReadable(iterable<string> $value, string $message = '', string $exception = '')
265+
* @method static void allReadable(string[] $value, string $message = '', string $exception = '')
266266
* @method static void nullOrWritable(string|null $value, string $message = '', string $exception = '')
267-
* @method static void allWritable(iterable<string> $value, string $message = '', string $exception = '')
267+
* @method static void allWritable(string[] $value, string $message = '', string $exception = '')
268268
* @method static void nullOrClassExists(mixed $value, string $message = '', string $exception = '')
269269
* @method static void allClassExists(mixed $value, string $message = '', string $exception = '')
270270
* @method static void nullOrSubclassOf(mixed $value, string|object $class, string $message = '', string $exception = '')
@@ -274,27 +274,27 @@
274274
* @method static void nullOrImplementsInterface(mixed $value, mixed $interface, string $message = '', string $exception = '')
275275
* @method static void allImplementsInterface(mixed $value, mixed $interface, string $message = '', string $exception = '')
276276
* @method static void nullOrPropertyExists(string|object|null $classOrObject, mixed $property, string $message = '', string $exception = '')
277-
* @method static void allPropertyExists(iterable<string|object> $classOrObject, mixed $property, string $message = '', string $exception = '')
277+
* @method static void allPropertyExists(array $classOrObject, mixed $property, string $message = '', string $exception = '')
278278
* @method static void nullOrPropertyNotExists(string|object|null $classOrObject, mixed $property, string $message = '', string $exception = '')
279-
* @method static void allPropertyNotExists(iterable<string|object> $classOrObject, mixed $property, string $message = '', string $exception = '')
279+
* @method static void allPropertyNotExists(array $classOrObject, mixed $property, string $message = '', string $exception = '')
280280
* @method static void nullOrMethodExists(string|object|null $classOrObject, mixed $method, string $message = '', string $exception = '')
281-
* @method static void allMethodExists(iterable<string|object> $classOrObject, mixed $method, string $message = '', string $exception = '')
281+
* @method static void allMethodExists(array $classOrObject, mixed $method, string $message = '', string $exception = '')
282282
* @method static void nullOrMethodNotExists(string|object|null $classOrObject, mixed $method, string $message = '', string $exception = '')
283-
* @method static void allMethodNotExists(iterable<string|object> $classOrObject, mixed $method, string $message = '', string $exception = '')
283+
* @method static void allMethodNotExists(array $classOrObject, mixed $method, string $message = '', string $exception = '')
284284
* @method static void nullOrKeyExists(array|null $array, string|int $key, string $message = '', string $exception = '')
285-
* @method static void allKeyExists(iterable<array> $array, string|int $key, string $message = '', string $exception = '')
285+
* @method static void allKeyExists(array $array, string|int $key, string $message = '', string $exception = '')
286286
* @method static void nullOrKeyNotExists(array|null $array, string|int $key, string $message = '', string $exception = '')
287-
* @method static void allKeyNotExists(iterable<array> $array, string|int $key, string $message = '', string $exception = '')
287+
* @method static void allKeyNotExists(array $array, string|int $key, string $message = '', string $exception = '')
288288
* @method static void nullOrValidArrayKey(mixed $value, string $message = '', string $exception = '')
289289
* @method static void allValidArrayKey(mixed $value, string $message = '', string $exception = '')
290290
* @method static void nullOrCount(Countable|array|null $array, int $number, string $message = '', string $exception = '')
291-
* @method static void allCount(iterable<Countable|array> $array, int $number, string $message = '', string $exception = '')
291+
* @method static void allCount(array $array, int $number, string $message = '', string $exception = '')
292292
* @method static void nullOrMinCount(Countable|array|null $array, int|float $min, string $message = '', string $exception = '')
293-
* @method static void allMinCount(iterable<Countable|array> $array, int|float $min, string $message = '', string $exception = '')
293+
* @method static void allMinCount(array $array, int|float $min, string $message = '', string $exception = '')
294294
* @method static void nullOrMaxCount(Countable|array|null $array, int|float $max, string $message = '', string $exception = '')
295-
* @method static void allMaxCount(iterable<Countable|array> $array, int|float $max, string $message = '', string $exception = '')
295+
* @method static void allMaxCount(array $array, int|float $max, string $message = '', string $exception = '')
296296
* @method static void nullOrCountBetween(Countable|array|null $array, int|float $min, int|float $max, string $message = '', string $exception = '')
297-
* @method static void allCountBetween(iterable<Countable|array> $array, int|float $min, int|float $max, string $message = '', string $exception = '')
297+
* @method static void allCountBetween(array $array, int|float $min, int|float $max, string $message = '', string $exception = '')
298298
* @method static void nullOrIsList(mixed $array, string $message = '', string $exception = '')
299299
* @method static void allIsList(mixed $array, string $message = '', string $exception = '')
300300
* @method static void nullOrIsNonEmptyList(mixed $array, string $message = '', string $exception = '')
@@ -304,9 +304,9 @@
304304
* @method static void nullOrIsNonEmptyMap(mixed $array, string $message = '', string $exception = '')
305305
* @method static void allIsNonEmptyMap(mixed $array, string $message = '', string $exception = '')
306306
* @method static void nullOrUuid(string|null $value, string $message = '', string $exception = '')
307-
* @method static void allUuid(iterable<string> $value, string $message = '', string $exception = '')
307+
* @method static void allUuid(string[] $value, string $message = '', string $exception = '')
308308
* @method static void nullOrThrows(Closure|null $expression, string $class, string $message = '', string $exception = '')
309-
* @method static void allThrows(iterable<Closure> $expression, string $class, string $message = '', string $exception = '')
309+
* @method static void allThrows(Closure[] $expression, string $class, string $message = '', string $exception = '')
310310
*/
311311
final class Assert
312312
{

0 commit comments

Comments
 (0)