Question from the PHP8 test

Is this function signature valid? ```php <?php interface Demo { public function bar(): ?mixed; } ```

Medium

Is this function signature valid?

<?php

interface Demo
{
    public function bar(): ?mixed;
}
Author: W3D TeamStatus: PublishedQuestion passed 1067 times
Edit
4
Community EvaluationsNo one has reviewed this question yet, be the first!