Ticket 7353

Fix issue where env actually contains values that are arrays

https://github.com/symfony/symfony/issues/7353