Skip to content

Commit

Permalink
Merge branch 'master' of github.com:phpspec/prophecy
Browse files Browse the repository at this point in the history
  • Loading branch information
everzet committed Sep 3, 2017
2 parents 1916ef5 + d135efb commit 15ea9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public function apply(ClassNode $node)
}

if ($this->nodeIsSplFileObject($node)) {
$constructor->setCode('return parent::__construct("' . __FILE__ .'");');
$filePath = str_replace('\\','\\\\',__FILE__);
$constructor->setCode('return parent::__construct("' . $filePath .'");');

return;
}
Expand Down

0 comments on commit 15ea9ac

Please sign in to comment.