Skip to content

Commit a71c581

Browse files
committed
Fixed ProjectFactory::create typehint and example
1 parent 3ae609d commit a71c581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: example.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$projectFactory = \phpDocumentor\Reflection\Php\ProjectFactory::createInstance();
2323

2424
// Create an array of files to analize.
25-
$files = ['tests/example.file.php'];
25+
$files = [ new \phpDocumentor\Reflection\File\LocalFile('tests/example.file.php') ];
2626

2727
//create a new project 'MyProject' containing all elements in the files.
2828
/** @var Project $project */

Diff for: src/phpDocumentor/Reflection/Php/ProjectFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function createInstance()
6666
* Creates a project from the set of files.
6767
*
6868
* @param string $name
69-
* @param string[] $files
69+
* @param \phpDocumentor\Reflection\File[] $files
7070
* @return Project
7171
* @throws Exception when no matching strategy was found.
7272
*/

0 commit comments

Comments
 (0)