Sometimes I wrap the built-in PHP classes with one of my own e.g.
private var $statement; //This will always be a mysqli_stmt object
//do some logging.
//do some other logging.
PhpStorm shows an error on the execute() line saying "Method 'execute' not found in class."
How do PhpStorm that the variable '$statement' will always be a mysqli_stmt object? Alternatively is there a way to make it not show that error for things that are only defined as vars?
btw Apologies if this is asked lots of times before - I couldn't find the answer easily.