@@ -105,7 +105,7 @@ public static function reflectMethod(object|string $classOrObj, string $method):
105
105
*
106
106
* @return Generator
107
107
*/
108
- public static function getReflectMethods (ReflectionClass $ reflectClass , int $ flags = 0 , Closure $ nameFilter = null ): ?Generator
108
+ public static function getReflectMethods (ReflectionClass $ reflectClass , int $ flags = 0 , ? Closure $ nameFilter = null ): ?Generator
109
109
{
110
110
foreach ($ reflectClass ->getMethods ($ flags ) as $ m ) {
111
111
$ mName = $ m ->getName ();
@@ -119,11 +119,11 @@ public static function getReflectMethods(ReflectionClass $reflectClass, int $fla
119
119
}
120
120
121
121
/**
122
- * @param $value
122
+ * @param mixed $value
123
123
*
124
124
* @return mixed
125
125
*/
126
- public static function value ($ value ): mixed
126
+ public static function value (mixed $ value ): mixed
127
127
{
128
128
if (is_callable ($ value )) {
129
129
return $ value ();
@@ -376,7 +376,7 @@ public static function lastError2array(): array
376
376
*
377
377
* @return string
378
378
*/
379
- public static function exception2string (Throwable $ e , bool $ getTrace = true , string $ catcher = null ): string
379
+ public static function exception2string (Throwable $ e , bool $ getTrace = true , ? string $ catcher = null ): string
380
380
{
381
381
return PhpException::toString ($ e , $ getTrace , $ catcher );
382
382
}
@@ -388,17 +388,17 @@ public static function exception2string(Throwable $e, bool $getTrace = true, str
388
388
*
389
389
* @return string
390
390
*/
391
- public static function exception2html (Throwable $ e , bool $ getTrace = true , string $ catcher = null ): string
391
+ public static function exception2html (Throwable $ e , bool $ getTrace = true , ? string $ catcher = null ): string
392
392
{
393
393
return PhpException::toHtml ($ e , $ getTrace , $ catcher );
394
394
}
395
395
396
396
/**
397
- * @param $anyData
397
+ * @param mixed $anyData
398
398
*
399
399
* @return string
400
400
*/
401
- public static function toString ($ anyData ): string
401
+ public static function toString (mixed $ anyData ): string
402
402
{
403
403
return DataHelper::toString ($ anyData );
404
404
}
0 commit comments