<?php interface StreamInterface { public function __toString(): string; public function foo(): string; } class X implements StreamInterface { public function __toString() { return 'x'; } public function foo(): string { // fatal error with line below // public function foo() { return 'x'; } }
You have javascript disabled. You will not be able to edit any code.