Quote:I tried deleting readonly from
- You cannot just delete it as it needs to be defined.
The best solution is Sandeep's solution as most servers now require php 8.> version code anyways, but if you want to delete the deprecated code, you can use -
final class Version
private string $version;
The 'sebastianbergmann library' has been uploaded in the past few months meaning newest version numbers used. See more on the readonly properties in PHP 8.1 at PHP Readonly Properties