Nouveau dans les initialiseurs - PHP 8.1
class Service
{
private Logger $logger;
public function __construct(
Logger $logger = new NullLogger(),
) {
$this->logger = $logger;
}
}
Puzzled Puffin