From 0d3003f184b15ff4093511d637dd8994e64fc671 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 16 Sep 2024 09:26:36 +0200 Subject: [PATCH] Fix blade regex to discover method call with args (#128) * fix blade regex to include methods with args * fixup! fix blade regex to include methods with args --- src/Enum/Template/BladeRegex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Enum/Template/BladeRegex.php b/src/Enum/Template/BladeRegex.php index 7effc30..0a09701 100644 --- a/src/Enum/Template/BladeRegex.php +++ b/src/Enum/Template/BladeRegex.php @@ -19,10 +19,10 @@ final class BladeRegex public const TAG_REGEX = '#@\w+(?.*?)\n#'; /** - * @see https://regex101.com/r/G7zAue/1 + * @see https://regex101.com/r/P1EaIR/1 * @var string */ - public const METHOD_CALL_REGEX = '#\w+(\-\>|::)(?\w+)\(\)#'; + public const METHOD_CALL_REGEX = '#\w+(\-\>|::)(?\w+)\((.*?)\)#'; /** * @var string