Skip to content

Commit

Permalink
Update SwitchTask.php
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Jan 14, 2025
1 parent aed38ad commit d651567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Phing/Task/System/SwitchTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function main()
foreach ($this->cases as $case) {
$cValue = $case->getValue();

if (empty($cValue)) {
if ($cValue === null || $cValue === '') {
throw new BuildException('Value is required for case.');
}

Expand Down

0 comments on commit d651567

Please sign in to comment.