Treat undefined env var as strict mode

An undefined SYMFONY_DEPRECATION_HELPER environment variable translates
to false, and that was previously interpreted as 0, which means strict
mode.
This restores backwards compatibility with the previous behavior, which
got broken in 1c73f9cfed .
This commit is contained in:
Grégoire Paris 2019-04-18 21:14:54 +02:00
parent 89ec31141f
commit 6c3c199b4e
No known key found for this signature in database
GPG Key ID: 24D48B8012B116BF

View File

@ -241,6 +241,10 @@ class DeprecationErrorHandler
return $this->configuration = Configuration::fromNumber($mode);
}
if (!$mode) {
return $this->configuration = Configuration::fromNumber(0);
}
return $this->configuration = Configuration::fromUrlEncodedString((string) $mode);
}