<?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;
}
}
}