xref: /PHP-8.1/Zend/tests/traits/bug60145.phpt (revision 7aacc705)
1--TEST--
2Bug #60145 (Usage of trait's use statement inside interfaces not properly checked.)
3--FILE--
4<?php
5
6trait foo {
7
8}
9
10interface MyInterface {
11    use foo;
12
13    public function b();
14
15}
16?>
17--EXPECTF--
18Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d
19