Skip to content

Commit

Permalink
Merge pull request #135 from donatj/patch-1
Browse files Browse the repository at this point in the history
LocalFile should be constructed with new
  • Loading branch information
jaapio committed Sep 16, 2019
2 parents 0548704 + e34c543 commit 5c2bf46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -59,7 +59,7 @@ By default the php7 parser is prefered. And php5 is used as a fallback. See the

At this point we are ready to analyze your complete project or just one file at the time. Just pass an array of file paths to the `create` method of the project factory.

$projectFiles = [\phpDocumentor\Reflection\File\LocalFile('tests/example.file.php')];
$projectFiles = [new \phpDocumentor\Reflection\File\LocalFile('tests/example.file.php')];
$project = $projectFactory->create('My Project', $projectFiles);

When the process is ready a new object of type `phpDocumentor\Reflection\Php\Project` will be returned that
Expand Down

0 comments on commit 5c2bf46

Please sign in to comment.