Say I have this function:
function updateGlobal($newVal) {
global $myGlobal;
$myGlobal = $newVal;
}
I will get the following message:
Unused global variable $myGlobal.
It seems like this is an erroneous message. Or at least it should be configurable.
Currently, I'm able to get around the warning this way:
function updateGlobal($newVal) {
global $myGlobal;
$myGlobal;
$myGlobal = $newVal;
}
But this is not ideal.
Say I have this function:
I will get the following message:
It seems like this is an erroneous message. Or at least it should be configurable.
Currently, I'm able to get around the warning this way:
But this is not ideal.