I have an interface like so:
interface A {
static function from($object): self;
}
In the class that implements the interface:
class B implements A {
static function from(\C $object): self{ // This is highlighted as an error
return new self();
}
}
Can I not declare a type when the interface has not declared a type?