Hi
I have seen this a few times in my app and was wondering what it means and how to fix it ?
"Special` function 'in_array' should be called in global namespace to allow compiler optimization."
here is a very simple method to demonstrate
public function testFunction(string $value)
{
$arr = [];
if (in_array($value, $arr)) {
echo 'found';
} else {
echo 'not found';
}
}