<?php
trait Test{
public function testtreit(){
return 'Это трейт !';
}
}
class Apple {
public $var1;
public $var2 = 'Orange';
public function type() {
return 'Apple';
}
public function __call($name, $arg=''){
ReflectionClass::export($name);
}
}
$ar = new Apple();
$ar->Test();
?>
Fatal error: Uncaught Error: Call to undefined method ReflectionClass::export() in /in/7QR3D:16
Stack trace:
#0 /in/7QR3D(21): Apple->__call('Test', Array)
#1 {main}
thrown in /in/7QR3D on line 16
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Function ReflectionClass::export() is deprecated in /in/7QR3D on line 16
Trait [ <user> trait Test ] {
@@ /in/7QR3D 2-6
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [1] {
Method [ <user> public method testtreit ] {
@@ /in/7QR3D 3 - 5
}
}
}