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