update to PHP-8.1
[m6w6/seekat] / lib / functions.php
index 9130fd40b53074d1cc46cf97605acde67e4a6b65..8a1615be160d1cf9b9bc3037056b1296e120601e 100644 (file)
@@ -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);