uniter icon indicating copy to clipboard operation
uniter copied to clipboard

Switch Order different

Open chipshort opened this issue 3 years ago • 3 comments

The following code works differently on uniter compared to actual php:

switch ('PATCH') {
    default:
        return 'uniter return';
    case 'PATCH':
        return 'php return';
}

When running this on the official php runtime, it returns 'php return', while on uniter, it returns 'uniter return'.

chipshort avatar Jan 03 '22 10:01 chipshort

Thanks for raising this @chipshort - apologies for the delay, I intend to have a fix out soon.

I realise 8 days have passed now, but how urgent is this issue for you?

asmblah avatar Jan 10 '22 22:01 asmblah

Hi, no worries. For me this is not urgent at all, I implemented a workaround for my specific use case. I just wanted to report this, so it can be fixed at some point.

Thanks for the cool libraries btw.

chipshort avatar Jan 10 '22 23:01 chipshort

You're very welcome @chipshort - the fixes referenced above should go out in the next release once ready (which should be within the next week or so).

asmblah avatar Jan 13 '22 01:01 asmblah

@chipshort apologies for the super-long delay, but a fix for this has now gone out in the latest release.

asmblah avatar Mar 08 '23 17:03 asmblah

No worries, thanks for the work you do and for this awesome package! I don't have access to the project where I needed this anymore, but the test in the PR looks good, so I think this issue can be closed.

chipshort avatar Mar 10 '23 07:03 chipshort

You're very welcome @chipshort.

asmblah avatar Mar 11 '23 10:03 asmblah