mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
f74e30c07c
RFC: https://wiki.php.net/rfc/abstract_trait_method_validation Closes GH-5068.
24 lines
368 B
PHP
24 lines
368 B
PHP
--TEST--
|
|
Abstract private trait method forwarded as abstract protected method
|
|
--FILE--
|
|
<?php
|
|
|
|
trait T {
|
|
abstract private function method(int $a, string $b);
|
|
}
|
|
|
|
abstract class C {
|
|
use T;
|
|
|
|
abstract protected function method(int $a, string $b);
|
|
}
|
|
|
|
class D extends C {
|
|
protected function method(int $a, string $b) {}
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|