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