Permalink
Browse files

Remove namespaced path fragment from corrected reflection filename

  • Loading branch information...
andy-shea committed Jul 12, 2018
1 parent 9ead5ba commit 979df31f94cdc56f484952084ce0d7d473d97e54
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/Instrument/Transformer/MagicConstantTransformer.php
@@ -71,11 +71,14 @@ public function transform(StreamMetaData $metadata): string
*/
public static function resolveFileName(string $fileName): string
{
return str_replace(
$suffix = '.php';
$pathParts = explode($suffix, str_replace(
[self::$rewriteToPath, DIRECTORY_SEPARATOR . '_proxies'],
[self::$rootPath, ''],
$fileName
);
));
// throw away namespaced path from actual filename
return $pathParts[0] . $suffix;
}
/**

0 comments on commit 979df31

Please sign in to comment.