You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The $sandbox property in ServiceName was set to true.
It took us a while to understand what went wrong here. Because false is seen as true-ish, it became true.
We missed the bool environment processor. Changing it to #[Autowire(env: 'bool:SANDBOX')] solved it. So it was just a mistake on our end.
But that lead me to wonder: why can't Symfony warn me about this? Given that I use Autowire, it already knows that I'm targeting a boolean property. It would be great if it would say something like:
Warning: You should use the `bool` environment processor for `$sandbox` in `ServiceName`.
If you think this is a valid idea, what would be the best location to implement this check?
Somewhere around here?