I am working on some old PHP, and I am not a PHP top notch expert (yet).
Some piece of code in a class calls a method with an array parameter:
$saleServers = $this->getSaleServers();
// Getting prices from cache or request
$prices = $this->getProductPrices($saleServers);
Yet, the method does not define an array parameter:
public function getProductPrices($getLicenseLifetime = true) { ... }
My questions are:
How is PHP going to handle
$saleServers
, is it going to ignore it? If yes, I guess I can remove it from the function call.How is PHP going to handle
$getLicenseLifetime
in regards to$saleServers
? Is it going to mix them up or keep them separate (i.e., PHP is not going to assign$saleServers
to$getLicenseLifetime
, correct)?