Closed
Description
Description
The following code:
<?php
abstract class User
{
final abstract public string $bar {
get;
}
}
Resulted in this output:
no output
But I expected this output instead:
Fatal error: Cannot use the final modifier on an abstract property
Proof: https://3v4l.org/2fSaq
PHP Version
PHP 8.4
Operating System
Irrelevant