<?php class A { public string $v { set => $this->v = 'Parent: '.$value; } } class B extends A { public string $v { set => $this->v = 'Child: '.parent::$v::set($value); } } $B = new B(); $B->v = 'test'; echo $B->v;
You have javascript disabled. You will not be able to edit any code.