Skip to content

Commit 359b2d6

Browse files
committed
Last cs fix
- Remove redundant code - Change arg type
1 parent 53925bf commit 359b2d6

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/Config/TypeWithOutputFieldsDefinition.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
abstract class TypeWithOutputFieldsDefinition extends TypeDefinition
1010
{
11-
1211
protected function outputFieldsSection(): NodeDefinition
1312
{
1413
$node = self::createNode('fields');

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,11 @@ private function securityQuerySection($name, $disabledValue)
372372
}
373373

374374
/**
375-
* @param string|null $name
376-
*
377375
* @return ArrayNodeDefinition|NodeDefinition
378376
*
379377
* @internal
380378
*/
381-
public static function getRootNodeWithoutDeprecation(TreeBuilder $builder, ?string $name, string $type = 'array')
379+
public static function getRootNodeWithoutDeprecation(TreeBuilder $builder, string $name, string $type = 'array')
382380
{
383381
// BC layer for symfony/config 4.1 and older
384382
return \method_exists($builder, 'getRootNode') ? $builder->getRootNode() : $builder->root($name, $type);

src/Validator/InputValidator.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ protected function buildValidationTree(ValidationNode $rootObject, array $proper
129129
/** @var ObjectType|InputObjectType $type */
130130
$type = $options['referenceType'];
131131

132-
if (null === $type) {
133-
continue;
134-
}
135-
136132
if ($options['isCollection']) {
137133
$rootObject->$property = $this->createCollectionNode($args[$property], $type, $rootObject);
138134
} else {

0 commit comments

Comments
 (0)