Revert "only use already existing reflections"
This reverts commit bb5bdcf0f4ccd6fc83692490ec70a697c90573fb.
This commit is contained in:
parent
bb5bdcf0f4
commit
8e3e2e770a
@ -710,15 +710,13 @@ public function __construct()
|
||||
}
|
||||
|
||||
// check traits for existing property
|
||||
if (isset($this->staticReflection[$metadata->name])) {
|
||||
$reflClass = $this->staticReflection[$metadata->name];
|
||||
$reflClass = new \ReflectionClass($metadata->name);
|
||||
|
||||
foreach ($reflClass->getTraits() as $trait) {
|
||||
if ($trait->hasProperty($property)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
isset($this->staticReflection[$metadata->name]) &&
|
||||
@ -744,15 +742,13 @@ public function __construct()
|
||||
}
|
||||
|
||||
// check traits for existing method
|
||||
if (isset($this->staticReflection[$metadata->name])) {
|
||||
$reflClass = $this->staticReflection[$metadata->name];
|
||||
$reflClass = new \ReflectionClass($metadata->name);
|
||||
|
||||
foreach ($reflClass->getTraits() as $trait) {
|
||||
if ($trait->hasMethod($method)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
isset($this->staticReflection[$metadata->name]) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user