xref: /PHP-7.4/Zend/tests/traits/language018.phpt (revision 7e262963)
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 %s on line %d
16