Every time i use the autocomplete with intelephense for my functions, they are prefixed with "global" and its annoying to changed it every time. For example i declared this function in mi file:
function countDigit($n) {
$count = 0;
while ($n != 0)
{
$n = round($n / 10);
++$count;
}
return $count;
}
Now when i try to use this function and i start writing countD
and press enter or tab, it autocompletes to GlobalCountDigit()
. I dont know what to do to stop that from happening. Someone can please help me and thell me why this happen?, im a beginner.
Sorry for my bad English.