Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Donjohn/MediaBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Donjohn committed Jul 23, 2019
2 parents 69c24f7 + dbf792a commit c2d2f73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Form/Transformer/MediaDataTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public function __construct(ProviderFactory $providerFactory, bool $createOnUpda
*/
private function getRealClass($class)
{
if (false === $pos = strrpos($class, '\\'.Proxy::MARKER.'\\')) {
return $class;
if (false === $pos = strrpos(get_class($class), '\\'.Proxy::MARKER.'\\')) {
return get_class($class);
}

return substr($class, $pos + Proxy::MARKER_LENGTH + 2);
return substr(get_class($class), $pos + Proxy::MARKER_LENGTH + 2);
}

/**
Expand Down

0 comments on commit c2d2f73

Please sign in to comment.