mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
12 lines
176 B
PHP
12 lines
176 B
PHP
--TEST--
|
|
Trying to extend a trait
|
|
--FILE--
|
|
<?php
|
|
|
|
trait abc { }
|
|
|
|
class foo extends abc { }
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class foo cannot extend from trait abc in %s on line %d
|