mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
16 lines
186 B
Plaintext
16 lines
186 B
Plaintext
|
--TEST--
|
||
|
Trying to use an interface as trait
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
interface abc {
|
||
|
}
|
||
|
|
||
|
class A {
|
||
|
use abc;
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: A cannot use abc - it is not a trait in %s on line %d
|