Skip to content

Commit 0e4d875

Browse files
[Config] Clarify var name
1 parent 0deaa1e commit 0e4d875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function canBeUnset(bool $allow = true): static
245245
*/
246246
public function canBeEnabled(/* ?string $info = null */): static
247247
{
248-
$node = $this
248+
$disabledNode = $this
249249
->addDefaultsIfNotSet()
250250
->treatFalseLike(['enabled' => false])
251251
->treatTrueLike(['enabled' => true])
@@ -265,7 +265,7 @@ public function canBeEnabled(/* ?string $info = null */): static
265265

266266
$info = 1 <= \func_num_args() ? func_get_arg(0) : null;
267267
if ($info) {
268-
$node->info($info);
268+
$disabledNode->info($info);
269269
}
270270

271271
return $this;
@@ -282,7 +282,7 @@ public function canBeEnabled(/* ?string $info = null */): static
282282
*/
283283
public function canBeDisabled(/* ?string $info = null */): static
284284
{
285-
$node = $this
285+
$enabledNode = $this
286286
->addDefaultsIfNotSet()
287287
->treatFalseLike(['enabled' => false])
288288
->treatTrueLike(['enabled' => true])
@@ -294,7 +294,7 @@ public function canBeDisabled(/* ?string $info = null */): static
294294

295295
$info = 1 <= \func_num_args() ? func_get_arg(0) : null;
296296
if ($info) {
297-
$node->info($info);
297+
$enabledNode->info($info);
298298
}
299299

300300
return $this;

0 commit comments

Comments
 (0)