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(
128
128
$ returnType = $ typeResolver ->resolve ($ returnType , $ context );
129
129
$ description = $ descriptionFactory ->create ($ description , $ context );
130
130
131
- if ('' !== $ arguments ) {
131
+ if (is_string ( $ arguments ) && strlen ( $ arguments) > 0 ) {
132
132
$ arguments = explode (', ' , $ arguments );
133
133
foreach ($ arguments as &$ argument ) {
134
134
$ argument = explode (' ' , self ::stripRestArg (trim ($ argument )), 2 );
Original file line number Diff line number Diff line change @@ -277,6 +277,13 @@ public function testFactoryMethod()
277
277
$ this ->assertSame ($ description , $ fixture ->getDescription ());
278
278
}
279
279
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
+ */
280
287
public function testReturnTypeThis ()
281
288
{
282
289
$ descriptionFactory = m::mock (DescriptionFactory::class);
You can’t perform that action at this time.
0 commit comments