I have a function that I use quite heavily named "mysql" that just executes a query. This was implemented way after the built-in mysql function was deprecated and removed (I think back in like PHP 4), but recently I'm getting errors about how it expected 3 required arguments and I've only given 1 or 2.


if (!strempty($Hash['se'] ?? '')) {
$SentEmailData = mysql("select`SentEmailID`from`sentemails`where`_SentEmailID+SHA256`=@@SentEmailID_SHA256;", $Hash['se']);
}
My mysql function is defined like
function mysql($MySQL, $Parameters = [], ?int $Options = null, ?bool $SlowLogging = null, ?bool $Inline = null, ?bool $Cache = null, ?bool $ErrorLogging = null, ?bool $Logging = null): array {
// ...
return [];
}
It even shows the function doc it thinks I'm trying to call, which clearly isn't being used here in PHP7.2

In the next release I've removed mysql from the default stubs that are loaded seeing as though it is no longer included with PHP since 7. You can configure the stubs as required with the intelephense.stubs setting. For a list of all stubs see the phpstorm-stubs github repo.
I guess it isn't a high priority thing after php 5.6.
Most helpful comment
In the next release I've removed mysql from the default stubs that are loaded seeing as though it is no longer included with PHP since 7. You can configure the stubs as required with the
intelephense.stubssetting. For a list of all stubs see the phpstorm-stubs github repo.