php-8.0.30-src/Zend/tests/traits/abstract_method_8.phpt

22 lines
263 B
PHP

--TEST--
Abstract method in trait using "self"
--FILE--
<?php
trait T {
abstract private function method(self $x): self;
}
class C {
use T;
private function method(self $x): self {
return $this;
}
}
?>
===DONE===
--EXPECT--
===DONE===