mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
6ad5c889a1
# This was not tested and documented yet. # Updated documentation in the RFC http://wiki.php.net/rfc/horizontalreuse
22 lines
300 B
PHP
22 lines
300 B
PHP
--TEST--
|
|
Traits with __callStatic magic method.
|
|
--CREDITS--
|
|
Simas Toleikis simast@gmail.com
|
|
--FILE--
|
|
<?php
|
|
|
|
trait TestTrait {
|
|
public static function __callStatic($name, $arguments) {
|
|
return $name;
|
|
}
|
|
}
|
|
|
|
class A {
|
|
use TestTrait;
|
|
}
|
|
|
|
echo A::Test();
|
|
|
|
?>
|
|
--EXPECT--
|
|
Test
|