Got an idea of a new assignment operator ?= in PHP.
Instead of writing
if (!$x)
$x = $y;one could use ?= and write
$x ?= $y;function getCurrencyRate(Currency $currency, \DateTime $time = null)
{
$time ?= new \DateTime('now');
...
}