File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public static function create(
128128 $ returnType = $ typeResolver ->resolve ($ returnType , $ context );
129129 $ description = $ descriptionFactory ->create ($ description , $ context );
130130
131- if ('' !== $ arguments ) {
131+ if (is_string ( $ arguments ) && strlen ( $ arguments) > 0 ) {
132132 $ arguments = explode (', ' , $ arguments );
133133 foreach ($ arguments as &$ argument ) {
134134 $ argument = explode (' ' , self ::stripRestArg (trim ($ argument )), 2 );
Original file line number Diff line number Diff line change @@ -277,6 +277,13 @@ public function testFactoryMethod()
277277 $ this ->assertSame ($ description , $ fixture ->getDescription ());
278278 }
279279
280+ /**
281+ * @covers ::create
282+ * @uses \phpDocumentor\Reflection\DocBlock\Tags\Method::<public>
283+ * @uses \phpDocumentor\Reflection\TypeResolver
284+ * @uses \phpDocumentor\Reflection\DocBlock\Description
285+ * @uses \phpDocumentor\Reflection\Types\Context
286+ */
280287 public function testReturnTypeThis ()
281288 {
282289 $ descriptionFactory = m::mock (DescriptionFactory::class);
You can’t perform that action at this time.
0 commit comments