We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Bug with Volt test?

I was creating a condition for one of my templates and I've finded that selectedOption is sameas option["value"], which is the same (well, nearly) as selectedOption == option["value"], fails because of not recognizing option (and yes, option is defined).

Is just my imagination? Or I'm skipping something?



33.8k

Ok, it was sameas(option["value"]).