Skip to content

Commit 13fe96d

Browse files
committed
noop: fix @method tags to satisfy PHPstorm
1 parent 2cdbefd commit 13fe96d

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

src/Assert.php

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
* @method static void ipv4(mixed $value, string $message = '', string $exception = '')
6666
* @method static void ipv6(mixed $value, string $message = '', string $exception = '')
6767
* @method static void email(mixed $value, string $message = '', string $exception = '')
68-
* @method static void uniqueValues(array<mixed> $values, string $message = '', string $exception = '')
68+
* @method static void uniqueValues(mixed[] $values, string $message = '', string $exception = '')
6969
* @method static void eq(mixed $value, mixed $expect, string $message = '', string $exception = '')
7070
* @method static void notEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
7171
* @method static void same(mixed $value, mixed $expect, string $message = '', string $exception = '')
@@ -75,7 +75,7 @@
7575
* @method static void lessThan(mixed $value, mixed $limit, string $message = '', string $exception = '')
7676
* @method static void lessThanEq(mixed $value, mixed $limit, string $message = '', string $exception = '')
7777
* @method static void range(mixed $value, mixed $min, mixed $max, string $message = '', string $exception = '')
78-
* @method static void oneOf(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
78+
* @method static void oneOf(mixed $value, mixed[] $values, string $message = '', string $exception = '')
7979
* @method static void inArray(mixed $value, mixed $values, string $message = '', string $exception = '')
8080
* @method static void contains(string $value, string $subString, string $message = '', string $exception = '')
8181
* @method static void notContains(string $value, string $subString, string $message = '', string $exception = '')
@@ -110,13 +110,13 @@
110110
* @method static void propertyNotExists(string|object $classOrObject, mixed $property, string $message = '', string $exception = '')
111111
* @method static void methodExists(string|object $classOrObject, mixed $method, string $message = '', string $exception = '')
112112
* @method static void methodNotExists(string|object $classOrObject, mixed $method, string $message = '', string $exception = '')
113-
* @method static void keyExists(array<mixed> $array, string|int $key, string $message = '', string $exception = '')
114-
* @method static void keyNotExists(array<mixed> $array, string|int $key, string $message = '', string $exception = '')
113+
* @method static void keyExists(mixed[] $array, string|int $key, string $message = '', string $exception = '')
114+
* @method static void keyNotExists(mixed[] $array, string|int $key, string $message = '', string $exception = '')
115115
* @method static void validArrayKey($value, string $message = '', string $exception = '')
116-
* @method static void count(\Countable|array<mixed> $array, int $number, string $message = '', string $exception = '')
117-
* @method static void minCount(\Countable|array<mixed> $array, int|float $min, string $message = '', string $exception = '')
118-
* @method static void maxCount(\Countable|array<mixed> $array, int|float $max, string $message = '', string $exception = '')
119-
* @method static void countBetween(\Countable|array<mixed> $array, int|float $min, int|float $max, string $message = '', string $exception = '')
116+
* @method static void count(\Countable|mixed[] $array, int $number, string $message = '', string $exception = '')
117+
* @method static void minCount(\Countable|mixed[] $array, int|float $min, string $message = '', string $exception = '')
118+
* @method static void maxCount(\Countable|mixed[] $array, int|float $max, string $message = '', string $exception = '')
119+
* @method static void countBetween(\Countable|mixed[] $array, int|float $min, int|float $max, string $message = '', string $exception = '')
120120
* @method static void isList(mixed $array, string $message = '', string $exception = '')
121121
* @method static void isNonEmptyList(mixed $array, string $message = '', string $exception = '')
122122
* @method static void isMap(mixed $array, string $message = '', string $exception = '')
@@ -192,8 +192,8 @@
192192
* @method static void allIpv6(mixed $value, string $message = '', string $exception = '')
193193
* @method static void nullOrEmail(mixed $value, string $message = '', string $exception = '')
194194
* @method static void allEmail(mixed $value, string $message = '', string $exception = '')
195-
* @method static void nullOrUniqueValues(array<mixed>|null $values, string $message = '', string $exception = '')
196-
* @method static void allUniqueValues(iterable<array<mixed>> $values, string $message = '', string $exception = '')
195+
* @method static void nullOrUniqueValues(mixed[]|null $values, string $message = '', string $exception = '')
196+
* @method static void allUniqueValues(iterable<mixed[]> $values, string $message = '', string $exception = '')
197197
* @method static void nullOrEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
198198
* @method static void allEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
199199
* @method static void nullOrNotEq(mixed $value, mixed $expect, string $message = '', string $exception = '')
@@ -212,10 +212,10 @@
212212
* @method static void allLessThanEq(mixed $value, mixed $limit, string $message = '', string $exception = '')
213213
* @method static void nullOrRange(mixed $value, mixed $min, mixed $max, string $message = '', string $exception = '')
214214
* @method static void allRange(mixed $value, mixed $min, mixed $max, string $message = '', string $exception = '')
215-
* @method static void nullOrOneOf(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
216-
* @method static void allOneOf(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
217-
* @method static void nullOrInArray(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
218-
* @method static void allInArray(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
215+
* @method static void nullOrOneOf(mixed $value, mixed[] $values, string $message = '', string $exception = '')
216+
* @method static void allOneOf(mixed $value, mixed[] $values, string $message = '', string $exception = '')
217+
* @method static void nullOrInArray(mixed $value, mixed[] $values, string $message = '', string $exception = '')
218+
* @method static void allInArray(mixed $value, mixed[] $values, string $message = '', string $exception = '')
219219
* @method static void nullOrContains(string|null $value, string $subString, string $message = '', string $exception = '')
220220
* @method static void allContains(string[] $value, string $subString, string $message = '', string $exception = '')
221221
* @method static void nullOrNotContains(string|null $value, string $subString, string $message = '', string $exception = '')
@@ -282,20 +282,20 @@
282282
* @method static void allMethodExists(iterable<string|object> $classOrObject, mixed $method, string $message = '', string $exception = '')
283283
* @method static void nullOrMethodNotExists(string|object|null $classOrObject, mixed $method, string $message = '', string $exception = '')
284284
* @method static void allMethodNotExists(iterable<string|object> $classOrObject, mixed $method, string $message = '', string $exception = '')
285-
* @method static void nullOrKeyExists(array<mixed>|null $array, string|int $key, string $message = '', string $exception = '')
286-
* @method static void allKeyExists(iterable<array<mixed>> $array, string|int $key, string $message = '', string $exception = '')
287-
* @method static void nullOrKeyNotExists(array<mixed>|null $array, string|int $key, string $message = '', string $exception = '')
288-
* @method static void allKeyNotExists(iterable<array<mixed>> $array, string|int $key, string $message = '', string $exception = '')
285+
* @method static void nullOrKeyExists(mixed[]|null $array, string|int $key, string $message = '', string $exception = '')
286+
* @method static void allKeyExists(iterable<mixed[]> $array, string|int $key, string $message = '', string $exception = '')
287+
* @method static void nullOrKeyNotExists(mixed[]|null $array, string|int $key, string $message = '', string $exception = '')
288+
* @method static void allKeyNotExists(iterable<mixed[]> $array, string|int $key, string $message = '', string $exception = '')
289289
* @method static void nullOrValidArrayKey(mixed $value, string $message = '', string $exception = '')
290290
* @method static void allValidArrayKey(mixed $value, string $message = '', string $exception = '')
291-
* @method static void nullOrCount(\Countable|array<mixed>|null $array, int $number, string $message = '', string $exception = '')
292-
* @method static void allCount(iterable<\Countable|array<mixed>> $array, int $number, string $message = '', string $exception = '')
293-
* @method static void nullOrMinCount(\Countable|array<mixed>|null $array, int|float $min, string $message = '', string $exception = '')
294-
* @method static void allMinCount(iterable<\Countable|array<mixed>> $array, int|float $min, string $message = '', string $exception = '')
295-
* @method static void nullOrMaxCount(\Countable|array<mixed>|null $array, int|float $max, string $message = '', string $exception = '')
296-
* @method static void allMaxCount(iterable<\Countable|array<mixed>> $array, int|float $max, string $message = '', string $exception = '')
297-
* @method static void nullOrCountBetween(\Countable|array<mixed>|null $array, int|float $min, int|float $max, string $message = '', string $exception = '')
298-
* @method static void allCountBetween(iterable<\Countable|array<mixed>> $array, int|float $min, int|float $max, string $message = '', string $exception = '')
291+
* @method static void nullOrCount(\Countable|mixed[]|null $array, int $number, string $message = '', string $exception = '')
292+
* @method static void allCount(iterable<\Countable|mixed[]> $array, int $number, string $message = '', string $exception = '')
293+
* @method static void nullOrMinCount(\Countable|mixed[]|null $array, int|float $min, string $message = '', string $exception = '')
294+
* @method static void allMinCount(iterable<\Countable|mixed[]> $array, int|float $min, string $message = '', string $exception = '')
295+
* @method static void nullOrMaxCount(\Countable|mixed[]|null $array, int|float $max, string $message = '', string $exception = '')
296+
* @method static void allMaxCount(iterable<\Countable|mixed[]> $array, int|float $max, string $message = '', string $exception = '')
297+
* @method static void nullOrCountBetween(\Countable|mixed[]|null $array, int|float $min, int|float $max, string $message = '', string $exception = '')
298+
* @method static void allCountBetween(iterable<\Countable|mixed[]> $array, int|float $min, int|float $max, string $message = '', string $exception = '')
299299
* @method static void nullOrIsList(mixed $array, string $message = '', string $exception = '')
300300
* @method static void allIsList(mixed $array, string $message = '', string $exception = '')
301301
* @method static void nullOrIsNonEmptyList(mixed $array, string $message = '', string $exception = '')
@@ -310,17 +310,17 @@
310310
* @method static void allThrows(\Closure[] $expression, string $class, string $message = '', string $exception = '')
311311
*
312312
* @method static void validBase64(mixed $value, string $message = '', string $exception = '')
313-
* @method static void notInArray(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
313+
* @method static void notInArray(mixed $value, mixed[] $values, string $message = '', string $exception = '')
314314
* @method static void validURN(mixed $value, string $message = '', string $exception = '')
315315
* @method static void validURI(mixed $value, string $message = '', string $exception = '')
316316
* @method static void validURL(mixed $value, string $message = '', string $exception = '')
317317
* @method static void nullOrValidBase64(mixed $value, string $message = '', string $exception = '')
318-
* @method static void nullOrNotInArray(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
318+
* @method static void nullOrNotInArray(mixed $value, mixed[] $values, string $message = '', string $exception = '')
319319
* @method static void nullOrValidURN(mixed $value, string $message = '', string $exception = '')
320320
* @method static void nullOrValidURI(mixed $value, string $message = '', string $exception = '')
321321
* @method static void nullOrValidURL(mixed $value, string $message = '', string $exception = '')
322322
* @method static void allValidBase64(mixed $value, string $message = '', string $exception = '')
323-
* @method static void allNotInArray(mixed $value, array<mixed> $values, string $message = '', string $exception = '')
323+
* @method static void allNotInArray(mixed $value, mixed[] $values, string $message = '', string $exception = '')
324324
* @method static void allValidURN(mixed $value, string $message = '', string $exception = '')
325325
* @method static void allValidURI(mixed $value, string $message = '', string $exception = '')
326326
* @method static void allValidURL(mixed $value, string $message = '', string $exception = '')
@@ -334,7 +334,7 @@ class Assert
334334

335335
/**
336336
* @param string $name
337-
* @param array<mixed> $arguments
337+
* @param mixed[] $arguments
338338
*/
339339
public static function __callStatic(string $name, array $arguments): void
340340
{
@@ -388,7 +388,7 @@ public static function __callStatic(string $name, array $arguments): void
388388
* Handle nullOr* for either Webmozart or for our custom assertions
389389
*
390390
* @param callable $method
391-
* @param array<mixed> $arguments
391+
* @param mixed[] $arguments
392392
* @return void
393393
*/
394394
private static function nullOr(callable $method, array $arguments): void
@@ -402,7 +402,7 @@ private static function nullOr(callable $method, array $arguments): void
402402
* all* for our custom assertions
403403
*
404404
* @param callable $method
405-
* @param array<mixed> $arguments
405+
* @param mixed[] $arguments
406406
* @return void
407407
*/
408408
private static function all(callable $method, array $arguments): void

0 commit comments

Comments
 (0)