From 01410b694a30296d969bec337d08a696023ac4f1 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Mon, 22 Nov 2021 15:36:51 +0100 Subject: [PATCH] fix: [test] Ignore beforeRender function --- app/Controller/Component/ACLComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/Component/ACLComponent.php b/app/Controller/Component/ACLComponent.php index 778d60f4d..77276037e 100644 --- a/app/Controller/Component/ACLComponent.php +++ b/app/Controller/Component/ACLComponent.php @@ -970,7 +970,7 @@ class ACLComponent extends Component $fileContents = preg_replace('/\/\*[^\*]+?\*\//', '', $fileContents); preg_match_all($functionFinder, $fileContents, $functionArray); foreach ($functionArray[1] as $function) { - if (substr($function, 0, 1) !== '_' && $function !== 'beforeFilter' && $function !== 'afterFilter') { + if ($function[0] !== '_' && $function !== 'beforeFilter' && $function !== 'afterFilter' && $function !== 'beforeRender') { $results[$controllerName][] = $function; } }