UPDATE Method.php, MethodTest.php

- try to make the if-condition php 7.2.0-compatible
- correct docBlock for the test method
This commit is contained in:
Christoph Harms-Ensink
2017-05-29 14:21:25 +02:00
committed by Jaap van Otterdijk
parent e9454d844d
commit a41a31f8c8
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ final class Method extends BaseTag implements Factory\StaticMethod
$returnType = $typeResolver->resolve($returnType, $context);
$description = $descriptionFactory->create($description, $context);
if ('' !== $arguments) {
if (is_string($arguments) && strlen($arguments) > 0) {
$arguments = explode(',', $arguments);
foreach($arguments as &$argument) {
$argument = explode(' ', self::stripRestArg(trim($argument)), 2);