mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
14 lines
155 B
Plaintext
14 lines
155 B
Plaintext
|
--TEST--
|
||
|
Trying to instantiate a trait
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
trait abc {
|
||
|
}
|
||
|
|
||
|
new abc;
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot instantiate trait abc in %s on line %d
|