Skip to content

Commit 70caa81

Browse files
authored
Update CustomAssertionTrait.php
Change `class-string` to `string` in @method to make phpstorm not show warnings in code that calls these assert methods
1 parent 33311a9 commit 70caa81

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

src/CustomAssertionTrait.php

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,36 @@
1818
/**
1919
* @package simplesamlphp/assert
2020
*
21-
* @method static void validDuration(mixed $value, string $message = '', class-string $exception = '')
22-
* @method static void stringPlausibleBase64(mixed $value, string $message = '', class-string $exception = '')
23-
* @method static void validDateTime(mixed $value, string $message = '', class-string $exception = '')
24-
* @method static void validDateTimeZulu(mixed $value, string $message = '', class-string $exception = '')
25-
* @method static void notInArray(mixed $value, array $values, string $message = '', class-string $exception = '')
26-
* @method static void validURN(mixed $value, string $message = '', class-string $exception = '')
27-
* @method static void validURI(mixed $value, string $message = '', class-string $exception = '')
28-
* @method static void validURL(mixed $value, string $message = '', class-string $exception = '')
29-
* @method static void validNCName(mixed $value, string $message = '', class-string $exception = '')
30-
* @method static void validQName(mixed $value, string $message = '', class-string $exception = '')
31-
* @method static void nullOrValidDuration(mixed $value, string $message = '', class-string $exception = '')
32-
* @method static void nullOrStringPlausibleBase64(mixed $value, string $message = '', class-string $exception = '')
33-
* @method static void nullOrValidDateTime(mixed $value, string $message = '', class-string $exception = '')
34-
* @method static void nullOrValidDateTimeZulu(mixed $value, string $message = '', class-string $exception = '')
35-
* @method static void nullOrNotInArray(mixed $value, array $values, string $message = '', class-string $exception = '')
36-
* @method static void nullOrValidURN(mixed $value, string $message = '', class-string $exception = '')
37-
* @method static void nullOrValidURI(mixed $value, string $message = '', class-string $exception = '')
38-
* @method static void nullOrValidURL(mixed $value, string $message = '', class-string $exception = '')
39-
* @method static void nullOrValidNCName(mixed $value, string $message = '', class-string $exception = '')
40-
* @method static void nullOrValidQName(mixed $value, string $message = '', class-string $exception = '')
41-
* @method static void allValidDuration(mixed $value, string $message = '', class-string $exception = '')
42-
* @method static void allStringPlausibleBase64(mixed $value, string $message = '', class-string $exception = '')
43-
* @method static void allValidDateTime(mixed $value, string $message = '', class-string $exception = '')
44-
* @method static void allValidDateTimeZulu(mixed $value, string $message = '', class-string $exception = '')
45-
* @method static void allNotInArray(mixed $value, array $values, string $message = '', class-string $exception = '')
46-
* @method static void allValidURN(mixed $value, string $message = '', class-string $exception = '')
47-
* @method static void allValidURI(mixed $value, string $message = '', class-string $exception = '')
48-
* @method static void allValidURL(mixed $value, string $message = '', class-string $exception = '')
49-
* @method static void allValidNCName(mixed $value, string $message = '', class-string $exception = '')
50-
* @method static void allValidQName(mixed $value, string $message = '', class-string $exception = '')
21+
* @method static void validDuration(mixed $value, string $message = '', string $exception = '')
22+
* @method static void stringPlausibleBase64(mixed $value, string $message = '', string $exception = '')
23+
* @method static void validDateTime(mixed $value, string $message = '', string $exception = '')
24+
* @method static void validDateTimeZulu(mixed $value, string $message = '', string $exception = '')
25+
* @method static void notInArray(mixed $value, array $values, string $message = '', string $exception = '')
26+
* @method static void validURN(mixed $value, string $message = '', string $exception = '')
27+
* @method static void validURI(mixed $value, string $message = '', string $exception = '')
28+
* @method static void validURL(mixed $value, string $message = '', string $exception = '')
29+
* @method static void validNCName(mixed $value, string $message = '', string $exception = '')
30+
* @method static void validQName(mixed $value, string $message = '', string $exception = '')
31+
* @method static void nullOrValidDuration(mixed $value, string $message = '', string $exception = '')
32+
* @method static void nullOrStringPlausibleBase64(mixed $value, string $message = '', string $exception = '')
33+
* @method static void nullOrValidDateTime(mixed $value, string $message = '', string $exception = '')
34+
* @method static void nullOrValidDateTimeZulu(mixed $value, string $message = '', string $exception = '')
35+
* @method static void nullOrNotInArray(mixed $value, array $values, string $message = '', string $exception = '')
36+
* @method static void nullOrValidURN(mixed $value, string $message = '', string $exception = '')
37+
* @method static void nullOrValidURI(mixed $value, string $message = '', string $exception = '')
38+
* @method static void nullOrValidURL(mixed $value, string $message = '', string $exception = '')
39+
* @method static void nullOrValidNCName(mixed $value, string $message = '', string $exception = '')
40+
* @method static void nullOrValidQName(mixed $value, string $message = '', string $exception = '')
41+
* @method static void allValidDuration(mixed $value, string $message = '', string $exception = '')
42+
* @method static void allStringPlausibleBase64(mixed $value, string $message = '', string $exception = '')
43+
* @method static void allValidDateTime(mixed $value, string $message = '', string $exception = '')
44+
* @method static void allValidDateTimeZulu(mixed $value, string $message = '', string $exception = '')
45+
* @method static void allNotInArray(mixed $value, array $values, string $message = '', string $exception = '')
46+
* @method static void allValidURN(mixed $value, string $message = '', string $exception = '')
47+
* @method static void allValidURI(mixed $value, string $message = '', string $exception = '')
48+
* @method static void allValidURL(mixed $value, string $message = '', string $exception = '')
49+
* @method static void allValidNCName(mixed $value, string $message = '', string $exception = '')
50+
* @method static void allValidQName(mixed $value, string $message = '', string $exception = '')
5151
*/
5252
trait CustomAssertionTrait
5353
{

0 commit comments

Comments
 (0)