From edc1481438baf32e26fe7331cc752a7ea51576cb Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 19 Oct 2016 14:49:06 +0200 Subject: fix phan warnings --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index 34eeefc..45903b5 100644 --- a/it.class +++ b/it.class @@ -892,7 +892,7 @@ static function gets() /** * Like time() but overridable via debug param */ -function time() +static function time() { return ($t = EDC('time')) ? strtotime(rtrim(it::replace(array('(\d\d\d\d)-(\d\d)-(\d\d)-(\d\d)-(\d\d)(-(\d\d))?' => '$1-$2-$3 $4:$5:$7', '^(\d\d)-(\d\d)(-(\d\d))?' => 'today $1:$2:$4'), $t), ":")) : time(); } -- cgit v1.2.3