File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/phpDocumentor/Reflection/Php Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -65,22 +65,17 @@ public static function createInstance(): self
65
65
/**
66
66
* Creates a project from the set of files.
67
67
*
68
- * @param string $name
69
- *
70
68
* @param File[] $files
71
- * @return ProjectInterface
72
69
* @throws Exception when no matching strategy was found.
73
70
*/
74
- public function create ($ name , array $ files ): ProjectInterface
71
+ public function create (string $ name , array $ files ): ProjectInterface
75
72
{
76
73
$ project = new Project ($ name );
77
74
78
75
foreach ($ files as $ filePath ) {
79
76
$ strategy = $ this ->strategies ->findMatching ($ filePath );
80
77
$ file = $ strategy ->create ($ filePath , $ this ->strategies );
81
- if ($ file !== null ) {
82
- $ project ->addFile ($ file );
83
- }
78
+ $ project ->addFile ($ file );
84
79
}
85
80
86
81
$ this ->buildNamespaces ($ project );
You can’t perform that action at this time.
0 commit comments