1--TEST--
2Automatic Stringable implementation participates in variance
3--FILE--
4<?php
5
6class Foo {
7 public function test(): Stringable {}
8}
9class Bar extends Foo {
10 public function test(): Bar {}
11 public function __toString() {}
12}
13
14?>
15===DONE===
16--EXPECT--
17===DONE===
18