mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
13 lines
165 B
Plaintext
13 lines
165 B
Plaintext
|
--TEST--
|
||
|
Trying to create a constant on Trait
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
trait foo {
|
||
|
const a = 1;
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Traits cannot have constants in %s on line %d
|