promoted properties php code example
Example: php 8 constructor promotion
public function __construct(
public string $myProperty,
public string $myOtherProperty,
) {}
public function __construct(
public string $myProperty,
public string $myOtherProperty,
) {}