make tests run again

This commit is contained in:
TomasVotruba 2017-09-21 12:27:28 +02:00
parent 6e2afdba0e
commit e07cb789d5
2 changed files with 4 additions and 5 deletions

View File

@ -139,8 +139,7 @@ final class NodeFactory
{
$args = [];
foreach ($arguments as $argument) {
$argument = $this->createTypeFromScalar($argument);
$args[] = new Arg($argument);
$args[] = $this->createArg($argument);
}
return $args;
@ -187,13 +186,13 @@ final class NodeFactory
}
if (is_bool($value)) {
$value = $this->createInternalConstant($value === true ? 'true' : 'false');
return $this->createInternalConstant($value === true ? 'true' : 'false');
}
throw new NotImplementedException(sprintf(
'Not implemented yet. Go to "%s()" and add check for "%s".',
__METHOD__,
(is_string($value) && class_exists($value)) ? get_class($value) : $value
is_object($value) ? get_class($value) : $value
));
}

View File

@ -66,7 +66,7 @@ final class FormSetRequiredRector extends AbstractRector
{
$node->name->name = 'setRequired';
$node->args = $this->nodeFactory->createArgs([
$this->nodeFactory->createFalseConstant(),
false,
]);
return $node;