X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FException%2Ffunctions.php;fp=lib%2FException%2Ffunctions.php;h=0c7171a0176886845395e0c8056256317e8af36d;hp=9045cb3df3473f1f41df7a9422fb5f4a8c37b432;hb=2121556150be871684b5046af7cf250b8219128d;hpb=cac6bea94e6cde142c951566fa6387ffa54eb3cb diff --git a/lib/Exception/functions.php b/lib/Exception/functions.php index 9045cb3..0c7171a 100644 --- a/lib/Exception/functions.php +++ b/lib/Exception/functions.php @@ -3,7 +3,7 @@ namespace seekat\Exception; /** - * @param $message + * @param string|\Throwable $message * @return \Throwable */ function exception(&$message) : \Throwable { @@ -18,10 +18,10 @@ function exception(&$message) : \Throwable { /** * Canonical error message from a string or Exception - * @param string|Exception $error + * @param string|\Throwable $error * @return string */ -function message(&$error) : string { +function message(&$error) : ?string { if ($error instanceof \Throwable) { $message = $error->getMessage(); } else {