From 909488694c6278f0619e3967517fea994d14781d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 7 Aug 2023 17:47:56 +0200 Subject: [PATCH] Update Heuristics.php Co-authored-by: Gerrit Uitslag --- Heuristics.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Heuristics.php b/Heuristics.php index f9d4662..9e301c7 100644 --- a/Heuristics.php +++ b/Heuristics.php @@ -142,6 +142,11 @@ protected function checkFunction($reference) $this->def = $reference; return ''; } + if (preg_match('/\(.+?\)$/', $reference)) { + [$reference, /* $arguments */] = explode('(', $reference, 2); + $this->def = $reference; + return ''; + } return $reference; }