Skip to content

Commit 9897702

Browse files
committed
Marked class Util as internal, and changed the type of the inputs to mixed
1 parent ef1d7ce commit 9897702

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/Robtimus/Multipart/Util.php

+11-10
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
/**
55
* Utility functions.
66
*
7-
* @package Robtimus\Multipart
8-
* @author Rob Spoor
9-
* @license https://www.apache.org/licenses/LICENSE-2.0.txt The Apache Software License, Version 2.0
7+
* @package Robtimus\Multipart
8+
* @author Rob Spoor
9+
* @license https://www.apache.org/licenses/LICENSE-2.0.txt The Apache Software License, Version 2.0
10+
* @internal
1011
*/
1112
final class Util
1213
{
@@ -20,7 +21,7 @@ private function __construct()
2021
/**
2122
* Validates that an input value is an int.
2223
*
23-
* @param int $input The input to validate.
24+
* @param mixed $input The input to validate.
2425
* @param string $name The name of the input value.
2526
* @param string $message An optional message to show if the value is not an int.
2627
*
@@ -38,7 +39,7 @@ public static function validateInt(&$input, $name, $message = '')
3839
/**
3940
* Validates that an input value is a positive int.
4041
*
41-
* @param int $input The input to validate.
42+
* @param mixed $input The input to validate.
4243
* @param string $name The name of the input value.
4344
* @param string $message An optional message to show if the value is not a positive int.
4445
*
@@ -57,7 +58,7 @@ public static function validatePositiveInt(&$input, $name, $message = '')
5758
/**
5859
* Validates that an input value is a string.
5960
*
60-
* @param string $input The input to validate.
61+
* @param mixed $input The input to validate.
6162
* @param string $name The name of the input value.
6263
* @param string $message An optional message to show if the value is not a string.
6364
*
@@ -75,7 +76,7 @@ public static function validateString(&$input, $name, $message = '')
7576
/**
7677
* Validates that an input value is a non-empty string.
7778
*
78-
* @param string $input The input to validate.
79+
* @param mixed $input The input to validate.
7980
* @param string $name The name of the input value.
8081
* @param string $message An optional message to show if the value is not a non-empty string.
8182
*
@@ -94,9 +95,9 @@ public static function validateNonEmptyString(&$input, $name, $message = '')
9495
/**
9596
* Validates that an input value can be used for streaming.
9697
*
97-
* @param string|resource|callable(int):string $input The input to validate.
98-
* @param string $name The name of the input value.
99-
* @param string $message An optional message to show if the value cannot be used for streaming.
98+
* @param mixed $input The input to validate.
99+
* @param string $name The name of the input value.
100+
* @param string $message An optional message to show if the value cannot be used for streaming.
100101
*
101102
* @return void
102103
*

0 commit comments

Comments
 (0)