

Though it has already been approved that PHP 8 is the real milestone for PHP performance, still it’s quite far from being released.
If the value is scalar types, it is possible to provide the default value:
public int $bar = 4;
public ?string $baz = null;
public array $list = [1, 2, 3];
If the type is nullable then you can only use “null” as a default.
Read More... https://www.qltech.com.au/develop/php-development/exciting-features-look-forward-php-7-4/





