X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2Ffunctions.php;h=8a1615be160d1cf9b9bc3037056b1296e120601e;hp=9130fd40b53074d1cc46cf97605acde67e4a6b65;hb=654d736df2c46ec2520f73e9089d06a44f2b9c50;hpb=2121556150be871684b5046af7cf250b8219128d diff --git a/lib/functions.php b/lib/functions.php index 9130fd4..8a1615b 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -11,12 +11,12 @@ namespace { namespace seekat { /** - * Generate a human readable representation of a variable + * Generate a human-readable representation of a variable * @param mixed $arg * @param bool $export whether to var_export the $arg * @return string */ - function typeof($arg, $export = false) { + function typeof($arg, bool $export = false) : string { $type = is_object($arg) ? "instance of ".get_class($arg) : gettype($arg);