projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update to PHP-8.1
[m6w6/seekat]
/
lib
/
functions.php
diff --git
a/lib/functions.php
b/lib/functions.php
index 9130fd40b53074d1cc46cf97605acde67e4a6b65..8a1615be160d1cf9b9bc3037056b1296e120601e 100644
(file)
--- a/
lib/functions.php
+++ b/
lib/functions.php
@@
-11,12
+11,12
@@
namespace {
namespace seekat {
/**
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
*/
* @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);
$type = is_object($arg)
? "instance of ".get_class($arg)
: gettype($arg);