mirror of
https://github.com/php/php-src.git
synced 2024-09-24 19:37:26 +00:00
17 lines
212 B
PHP
17 lines
212 B
PHP
--TEST--
|
|
Trying to instantiate a trait
|
|
--FILE--
|
|
<?php
|
|
|
|
trait abc {
|
|
}
|
|
|
|
new abc;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot instantiate trait abc in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|