mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
13 lines
171 B
PHP
13 lines
171 B
PHP
--TEST--
|
|
Trying to extend a trait
|
|
--FILE--
|
|
<?php
|
|
|
|
trait abc { }
|
|
|
|
class foo extends abc { }
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class foo cannot extend trait abc in %s on line %d
|