- Output for 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7
- Fatal error: Constructor D::__construct() cannot declare a return type in /in/daeEm on line 7
Process exited with code 255.
<?php
class C {
function __construct() {}
}
class D {
function __construct(): void {}
}