Skip to content

Commit

Permalink
Merge pull request #23 from Flowpack/master
Browse files Browse the repository at this point in the history
Merge master in 2.0
  • Loading branch information
hlubek authored Jan 29, 2018
2 parents d2eca19 + 1b10cda commit 6e27ba8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Classes/Job/StaticMethodCallJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,14 @@ public function getLabel()
{
$arguments = [];
foreach($this->arguments as $argumentValue) {
if (TypeHandling::isSimpleType($argumentValue)) {
$arguments[] = $argumentValue;
if (TypeHandling::isSimpleType(gettype($argumentValue))) {
if (is_array($argumentValue)) {
$arguments[] = gettype($argumentValue);
} else {
$arguments[] = $argumentValue;
}
} else {
$arguments[] = '[' . gettype($argumentValue) . ']';
$arguments[] = '[' . TypeHandling::getTypeForValue($argumentValue) . ']';
}
}
return sprintf('%s::%s(%s)', $this->className, $this->methodName, implode(', ', $arguments));
Expand Down

0 comments on commit 6e27ba8

Please sign in to comment.