Skip to content

Commit

Permalink
Remove workaround introduced in #236
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys authored and franmomu committed Sep 3, 2023
1 parent c4c6f85 commit c411476
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Mapping/Driver/AbstractAnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,7 @@ public function setOriginalDriver($driver)
*/
public function getMetaReflectionClass($meta)
{
$class = $meta->getReflectionClass();
if (!$class) {
// based on recent doctrine 2.3.0-DEV maybe will be fixed in some way
// this happens when running annotation driver in combination with
// static reflection services. This is not the nicest fix
$class = new \ReflectionClass($meta->getName());
}

return $class;
return $meta->getReflectionClass();
}

/**
Expand Down

0 comments on commit c411476

Please sign in to comment.