@@ -105,7 +105,7 @@ public static function reflectMethod(object|string $classOrObj, string $method):
105105 *
106106 * @return Generator
107107 */
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
109109 {
110110 foreach ($ reflectClass ->getMethods ($ flags ) as $ m ) {
111111 $ mName = $ m ->getName ();
@@ -119,11 +119,11 @@ public static function getReflectMethods(ReflectionClass $reflectClass, int $fla
119119 }
120120
121121 /**
122- * @param $value
122+ * @param mixed $value
123123 *
124124 * @return mixed
125125 */
126- public static function value ($ value ): mixed
126+ public static function value (mixed $ value ): mixed
127127 {
128128 if (is_callable ($ value )) {
129129 return $ value ();
@@ -376,7 +376,7 @@ public static function lastError2array(): array
376376 *
377377 * @return string
378378 */
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
380380 {
381381 return PhpException::toString ($ e , $ getTrace , $ catcher );
382382 }
@@ -388,17 +388,17 @@ public static function exception2string(Throwable $e, bool $getTrace = true, str
388388 *
389389 * @return string
390390 */
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
392392 {
393393 return PhpException::toHtml ($ e , $ getTrace , $ catcher );
394394 }
395395
396396 /**
397- * @param $anyData
397+ * @param mixed $anyData
398398 *
399399 * @return string
400400 */
401- public static function toString ($ anyData ): string
401+ public static function toString (mixed $ anyData ): string
402402 {
403403 return DataHelper::toString ($ anyData );
404404 }
0 commit comments