mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
7aacc705d0
Closes GH-5958
18 lines
331 B
PHP
18 lines
331 B
PHP
--TEST--
|
|
Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
|
|
--FILE--
|
|
<?php
|
|
|
|
trait A {
|
|
public function bar() {}
|
|
}
|
|
|
|
class MyClass {
|
|
use A {
|
|
A::nonExistent as barA;
|
|
}
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: An alias was defined for A::nonExistent but this method does not exist in %s on line %d
|