xref: /PHP-8.4/Zend/tests/traits/language018.phpt (revision adfdfb2e)
1--TEST--
2abstract alias
3--FILE--
4<?php
5trait T1 {
6    function foo() {}
7}
8class C1 {
9    use T1 {
10        T1::foo as abstract;
11    }
12}
13?>
14--EXPECTF--
15Fatal error: Cannot use "abstract" as method modifier in trait alias in %s on line %d
16