mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
make tests run again
This commit is contained in:
parent
6e2afdba0e
commit
e07cb789d5
@ -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
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ final class FormSetRequiredRector extends AbstractRector
|
||||
{
|
||||
$node->name->name = 'setRequired';
|
||||
$node->args = $this->nodeFactory->createArgs([
|
||||
$this->nodeFactory->createFalseConstant(),
|
||||
false,
|
||||
]);
|
||||
|
||||
return $node;
|
||||
|
Loading…
x
Reference in New Issue
Block a user