mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
13 lines
233 B
PHP
13 lines
233 B
PHP
--TEST--
|
|
Bug #60173 (Wrong error message on reflective trait instantiation)
|
|
--FILE--
|
|
<?php
|
|
|
|
trait foo { }
|
|
|
|
$rc = new ReflectionClass('foo');
|
|
$rc->newInstance();
|
|
|
|
--EXPECTF--
|
|
Fatal error: Cannot instantiate trait foo in %s on line %d
|