Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on using switch statement "Value is required for case" #1889

Open
Celebrate-Reinhard opened this issue Dec 30, 2024 · 0 comments
Open

Comments

@Celebrate-Reinhard
Copy link

Describe the bug
After updating to phing/phing from 2.17.4 to 3.0.1, the switch statement throws an error.

Steps To Reproduce

<switch value="${WorkerNumber}">
    <case value="0">
        <echo message="The value of property WorkerNumber is 0" />
    </case>
    <case value="1">
        <echo message="The value of property WorkerNumber is 1" />
    </case>
    <default>
        <echo message="The value of property WorkerNumber is not sensible" />
    </default>
</switch>

There are no other changes to xml file. I am calling it as before like this:

vendor/bin/phing -f /foo/build-prod.xml run-foo -DWorkerNumber=1

Expected behavior
Echo statement of case 1 is visible.

Screenshots / terminal output
build-prod.xml:12:40 Value is required for case

Additional context
update of phing/phing from 2.17.4 to 3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant