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 968 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!