Skip to content

Commit 06066c5

Browse files
Revert "Add support for default values to getStringAttribute()"
This reverts commit 20ff830.
1 parent 3b3e54f commit 06066c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TextUI/Configuration/Xml/Loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,10 @@ private function getIntegerAttribute(DOMElement $element, string $attribute, int
572572
);
573573
}
574574

575-
private function getStringAttribute(DOMElement $element, string $attribute, ?string $default = null): ?string
575+
private function getStringAttribute(DOMElement $element, string $attribute): ?string
576576
{
577577
if (!$element->hasAttribute($attribute)) {
578-
return $default ?? null;
578+
return null;
579579
}
580580

581581
return $element->getAttribute($attribute);

0 commit comments

Comments
 (0)