mirror of
https://github.com/php/php-src.git
synced 2026-04-24 16:38:25 +02:00
f74e30c07c
RFC: https://wiki.php.net/rfc/abstract_trait_method_validation Closes GH-5068.
21 lines
353 B
PHP
21 lines
353 B
PHP
--TEST--
|
|
Abstract private trait method not implemented
|
|
--FILE--
|
|
<?php
|
|
|
|
trait T {
|
|
abstract private function method(int $a, string $b);
|
|
}
|
|
|
|
abstract class C {
|
|
use T;
|
|
}
|
|
|
|
class D extends C {
|
|
private function method(int $a, string $b) {}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class C must implement 1 abstract private method (C::method) in %s on line %d
|