mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
1f4dfded59
# also used the Z_STRVAL where it seemed appropriate
16 lines
239 B
PHP
16 lines
239 B
PHP
--TEST--
|
|
Bug #55524 Traits should not be able to extend a class
|
|
--FILE--
|
|
<?php
|
|
|
|
class Base {}
|
|
|
|
trait Foo extends Base {
|
|
function bar() {}
|
|
}
|
|
|
|
echo 'DONE';
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: A trait (Foo) cannot extend a class in %s on line %d
|