Question from the PHP8 test

Is this PHP code valid?

Medium

Is this code valid?

<?php

class Test {
    public function __construct(public array ...$strings) {}
}
Author: W3D TeamStatus: PublishedQuestion passed 783 times
Edit
2
Community Evaluations
developer avatar
David
18/02/2024
en quoi ce n'est pas valide ?