From 4e2a3c1bacb5292313da6e0ae26e002c05e1c17d Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Mon, 26 Dec 2016 09:31:42 -0500 Subject: [PATCH] Fix issue that was preventing non-local property hooks from working in WireHooks class --- wire/core/WireHooks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wire/core/WireHooks.php b/wire/core/WireHooks.php index 6d1f0233..1368b08d 100644 --- a/wire/core/WireHooks.php +++ b/wire/core/WireHooks.php @@ -295,6 +295,8 @@ class WireHooks { if($type == 'method' || $type == 'either') { if(strpos($method, '(') === false) $method .= '()'; if($type == 'either') $property = rtrim($method, '()'); + } else { + $property = rtrim($method, '()'); } if($type == 'method') {