From 7f718d0cb3f48b65ea4c3bf042e21977c4f797d8 Mon Sep 17 00:00:00 2001 From: pizzaminded Date: Sun, 28 Apr 2019 17:48:15 +0200 Subject: [PATCH] Fixed if statement --- ref.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref.php b/ref.php index c5b84d2..84712e2 100644 --- a/ref.php +++ b/ref.php @@ -21,7 +21,7 @@ function r(){ // something went wrong while trying to parse the source expressions? // if so, silently ignore this part and leave out the expression info - if(func_num_args() !== count($expressions)) + if($expressions instanceof \Countable && func_num_args() !== count($expressions)) $expressions = null; // use HTML formatter only if we're not in CLI mode, or if return was requested