<?php declare(strict_types = 1); class A { public function __construct(public readonly int $myProp) {} } class B extends A { // This should be reported as an error, as a readonly prop cannot be redeclared. public function __construct(public readonly int $myProp) { } } $foo = new B(7);
You have javascript disabled. You will not be able to edit any code.