File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1313
1414use phpDocumentor \Reflection \DocBlock ;
1515use phpDocumentor \Reflection \DocBlockFactory ;
16+ use phpDocumentor \Reflection \DocBlockFactoryInterface ;
1617use phpDocumentor \Reflection \Types \Compound ;
1718use phpDocumentor \Reflection \Types \ContextFactory ;
1819use phpDocumentor \Reflection \Types \Null_ ;
@@ -46,9 +47,9 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
4647 */
4748 private $ contextFactory ;
4849
49- public function __construct ()
50+ public function __construct (DocBlockFactoryInterface $ docBlockFactory = null )
5051 {
51- $ this ->docBlockFactory = DocBlockFactory::createInstance ();
52+ $ this ->docBlockFactory = $ docBlockFactory ?: DocBlockFactory::createInstance ();
5253 $ this ->contextFactory = new ContextFactory ();
5354 }
5455
You can’t perform that action at this time.
0 commit comments