<?php // This is fine. class Foo { function bar($a) {} // Untyped param. } class FooChild extends Foo { function bar(mixed $a) {} // Child declares the param as mixed. } // This is an error... class Person { public $name { set(mixed $value) { $this->name = $value; } } }
You have javascript disabled. You will not be able to edit any code.