Skip to content

Commit 6fc327a

Browse files
committed
Use QAM internal functions table to improve external code search.
1 parent 0bbc9a8 commit 6fc327a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Plugin/QaCheck/System/ExternalCode.php

+3
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ protected function checkExternal(): Result {
120120
$external = [];
121121
$funcs = array_flip(get_defined_functions()['user']);
122122
foreach ($funcs as $func => $_) {
123+
if (isset($this->qam->internalFunctions[$func])) {
124+
continue;
125+
}
123126
try {
124127
$rf = new ReflectionFunction($func);
125128
}

0 commit comments

Comments
 (0)