Skip to content

Commit 32c5fa5

Browse files
committed
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 1c73f9cfedad7fb7eb6ab0b1230d0219685ead0f .
1 parent 0b9db80 commit 32c5fa5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DeprecationErrorHandler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ private function getConfiguration()
241241
return $this->configuration = Configuration::fromNumber($mode);
242242
}
243243

244+
if (!$mode) {
245+
return $this->configuration = Configuration::fromNumber(0);
246+
}
247+
244248
return $this->configuration = Configuration::fromUrlEncodedString((string) $mode);
245249
}
246250

0 commit comments

Comments
 (0)